React-native 纱线 android @homee/react-native-mapbox-navigation 任务 ':homee_react-native-mapbox-navigation:compileDebugKotlin' 执行失败

问题描述 投票:0回答:2

我已经安装了节点包@homee/react-native-mapbox-navigation,以便在我的react-native android应用程序中进行快速逐向导航,但是当我运行

yarn android
时,出现以下错误:

> Configure project :homee_react-native-mapbox-navigation
WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the `gradle.properties` file or use the new publishing DSL.

> Task :homee_react-native-mapbox-navigation:compileDebugKotlin

> Task :homee_react-native-mapbox-navigation:compileDebugKotlin FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
72 actionable tasks: 2 executed, 70 up-to-date
e: /home/cipto/Code/mapbox/mapboxnav/node_modules/@homee/react-native-mapbox-navigation/android/src/main/java/com/homee/mapboxnavigation/MapboxNavigationManager.kt: (11, 19): Unresolved reference: maps

。 。 .

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':homee_react-native-mapbox-navigation:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
> Run with --stacktrace option to get the stack trace.

一直遵循自述文件中的指导https://github.com/homeeondemand/react-native-mapbox-navigation,顺便说一句,我通过运行安装了来自github(最新版本2.00 master分支)的包这个:

yarn add homeeondemand/react-native-mapbox-navigation#master

react-native mapbox mapbox-navigation
2个回答
0
投票

我也尝试过那个包并得到了同样的错误,在我将 kotlin 版本升级到 1.6.0 后,错误消失了。


0
投票

我收到以下错误。有谁知道为什么吗?

1:任务因异常而失败。

  • 地点: 构建文件 'C:\Users\diego\OneDrive\Desktop ruckatlas ruckwise-mobile 颂歌模块 eact-native-mapbox-navigation ndroid uild.gradle'行:26

  • 出了什么问题: 评估项目“:react-native-mapbox-navigation”时出现问题。

未找到 ID 为“maven”的插件。

  • 尝试:

使用 --stacktrace 选项运行以获取堆栈跟踪。 使用 --info 或 --debug 选项运行以获得更多日志输出。 使用 --scan 运行以获得完整的见解。 =================================================== ==============================

2:任务因异常而失败。

  • 出了什么问题: 配置项目 ':react-native-mapbox-navigation' 时出现问题。

未指定compileSdkVersion。请将其添加到build.gradle

  • 尝试:

使用 --stacktrace 选项运行以获取堆栈跟踪。 使用 --info 或 --debug 选项运行以获得更多日志输出。 使用 --scan 运行以获得完整的见解。 =================================================== ==============================

© www.soinside.com 2019 - 2024. All rights reserved.