gpt4 book ai didi

react 原生 map :processReleaseResources task gradlew build failed

转载 作者:行者123 更新时间:2023-12-04 04:15:21 25 4
gpt4 key购买 nike

我已经从 Stack 中检查了所有类似的答案,并且我还在 GitHub Issues 上查找但没有任何运气。

当我安装 react-native-maps 插件时出现问题,在构建期间我收到 gradlew 异常

:react-native-maps:processReleaseResources FAILED

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-maps:processReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files (x86)\Android\android-sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

Google Maps API 已正确添加到 AndroidManifest 文件中。
还有一点我也看到了很多警告,比如
...\node_modules\react-native-maps\android\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.8.0\res\drawable\common_google_signin_btn_text_light_focused.xml:14:29-81 : No resource found that matches the given name (at 'drawable' with value '@drawable/common_google_signin_btn_text_light_normal').

但是在 build.gradle 中,我添加了依赖项
compile 'com.google.android.gms:play-services-base:10.0.1'

任何想法如何解决问题?

最佳答案

我最近遇到了同样的错误,应该更加注意错误消息。消息清楚地说明了这一点。 Failure to execute aapt简答:
使 aapt 可执行
稍微长一点的答案:
1) 运行 cd android && ./gradlew clean && ./gradlew assembleDebug --stacktrace .输出将显示构建工具版本,您将在其中找到正确的 aapt 以使其可执行及其路径。例如 Cannot run program "/home/user/Android/Sdk/build-tools/25.0.3/aapt" (in directory "/home/user/testproject/node_modules/react-native-maps/lib/android"): error=13, Permission denied2)右键单击文件“aapt”,单击权限,单击标记为“执行”的复选框

3) 运行 ./gradlew clean && ./gradlew assembleDebug再一次,你应该很高兴去!!!

关于 react 原生 map :processReleaseResources task gradlew build failed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41428213/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com