在裸反应本机应用程序中安装反应本机地图后构建失败

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

我安装react-native-maps后应用程序构建失败,错误消息如下

任务:react-native-maps:processDebugManifest
在源 AndroidManifest.xml 中找到 package="com.rnmaps.maps":C:\Users\Dell\ow 颂歌模块 eact-native-maps ndroid\src\main\AndroidManifest.xml。 不再支持通过源 AndroidManifest.xml 中的 package 属性设置命名空间,并且该值将被忽略。 建议:从中删除 package="com.rnmaps.maps" 源 AndroidManifest.xml:C:\Users\Dell\ow 颂歌模块 eact-native-maps ndroid\src\main\AndroidManifest.xml。

任务:react-native-maps:compileDebugJavaWithJavac失败

此版本中使用了已弃用的 Gradle 功能,使其与 Gradle 9.0 不兼容。

您可以使用“--warning-mode all”来显示各个弃用警告并确定它们是否来自您自己的脚本或插件。

有关更多信息,请参阅 Gradle 文档中的 https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings。 52 个可操作的任务:12 个已执行,40 个最新

info 💡提示:通过运行 npx react-native doctor 来确保您已正确设置开发环境。要了解有关 doctor 命令的更多信息,请访问:

https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

FAILURE:构建失败并出现异常。

    出了什么问题: 任务 ':react-native-maps:compileDebugJavaWithJavac' 执行失败。
无法解析配置“:react-native-maps:androidJdkImage”的所有文件。 无法转换 core-for-system-modules.jar 以匹配属性 {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}。 > JdkImageTransform 执行失败:C:\Users\Dell\AppData\Local\Android\Sdk\platforms ndroid-3
react-native react-native-maps
© www.soinside.com 2019 - 2024. All rights reserved.