简体   繁体   中英

Android build fails on Bamboo with Aapt2Exception

I keep getting this from Bamboo. Tried all solutions mentioned. Nothing works for me yet

like this: 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

This is a bug in AAPT2 with non-ascii characters in file-paths on Windows. Update to android gradle plugin version 3.2.0-alpha11 or newer where this is fixed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM