When I use Android Studio 3.0 Beta 7 and update my project using the Android Gradle 3.0.0-beta7 plugin, my project works fine both in debug variants and in rc (proguard enabled).
When I try to build my Jenkins box, I get a bunch:
C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\androidsdk-2.4.12-fullRelease.aar\222313e24d6c4b00972b4191a95e6e2e\res\drawable-xxhdpi-v4\ic_teads_sdk_contact_us.png: error: file not found. C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\appcompat-v7-25.3.1.aar\c8fedf0a28e83c9ac57e1ac18693c6a0\res\drawable-hdpi-v4\abc_tab_indicator_mtrl_alpha.9.png: error: file not found. C:\Windows\System32\config\systemprofile\.gradle\caches\transforms-1\files-1.1\android-sdk-ui-2.0.4.aar\0b51ce1d665e491601444168a26000ca\res\drawable-xhdpi-v4\com_appboy_inappmessage_chevron.png: error: file not found.
Something went wrong:
Execution failed for task ':mergeDevOnlySlDebugResources'. Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
I tried using AAPT instead of AAPT2, and this still gives me the same problem. My other jenkins projects that don't run this Gradle 3 variable are still working fine. Also, files that cannot be found on top are indeed located on my machine in a location that AAPT cannot find.
Has anyone come across this before?
I saw an error on the Internet about invalid PNGs or actual errors when using the new AAPT2, but this is different.
android android-studio android-gradle jenkins aapt
L7ColWinters
source share