gpt4 book ai didi

android - Android构建在Bamboo上失败并显示Aapt2Exception

转载 作者:行者123 更新时间:2023-12-03 05:45:39 24 4
gpt4 key购买 nike

我一直从竹子那里得到这个。
尝试了所有提到的解决方案。没什么对我有用

像这样:Gradle build :app:mergeDebugResources file not found error

:app:mergeIt2Resources 09-May-2018 21:00:33 C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\8bd8dfdd2cf63cd839f54537b3cca1ce\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: error: file not found. 09-May-2018 21:00:33 C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\core-0.9.6.0.aar\0db248fe8779d2711cac6d6677bfeb28\res\anim\popup_exit.xml: error: file not found. 09-May-2018 21:00:33 C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\core-0.9.6.0.aar\0db248fe8779d2711cac6d6677bfeb28\res\drawable-anydpi-v21\md_nav_back.xml: error: file not found. 09-May-2018 21:00:33 C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\8bd8dfdd2cf63cd839f54537b3cca1ce\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: error: file not found. 09-May-2018 21:00:33 C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\play-services-base-15.0.1.aar\8bd8dfdd2cf63cd839f54537b3cca1ce\res\drawable-mdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: error: file not found. 09-May-2018 21:00:33 C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\appcompat-v7-27.1.1.aar\ab46dfcb77975b5f25129199a474e726\res\drawable-hdpi-v4\abc_ic_menu_share_mtrl_alpha.png: error: file not found.
.
.
.
.
.
.
.
.
C:\Windows\System32\config\systemprofile.gradle\caches\transforms-1\files-1.1\core-0.9.6.0.aar\0db248fe8779d2711cac6d6677bfeb28\res\layout-ldrtl-v17\md_listitem_singlechoice.xml: error: file not found. 09-May-2018 21:00:42 Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details 09-May-2018 21:00:44 :app:mergeIt2Resources FAILED 09-May-2018 21:00:44
09-May-2018 21:00:44 FAILURE: Build failed with an exception. 09-May-2018 21:00:44
09-May-2018 21:00:44 * What went wrong: 09-May-2018 21:00:44 Execution failed for task ':app:mergeIt2Resources'. 09-May-2018 21:00:44 > Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details 09-May-2018 21:00:44
09-May-2018 21:00:44 * Try: 09-May-2018 21:00:44 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. 09-May-2018 21:00:44
09-May-2018 21:00:44 * Get more help at https://help.gradle.org

最佳答案

这是AAPT2中的错误,该错误在Windows的文件路径中带有非ASCII字符。更新至android gradle插件版本3.2.0-alpha11或更高版本(已修复)。

关于android - Android构建在Bamboo上失败并显示Aapt2Exception,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50253492/

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