I update android-studio 3.0 from canary 5 to canary 6 and suddenly My app gives crash on KitKat(API 19) with below stacktrace.
The Main2Activity.java:10 line is the
Seems like the issue is related to Aapt 2.
Put
android.enableAapt2=false
In your gradle.properties
file and it fixes the issue for me.
I have the same issue.
put
android.enableAapt2=false
AAPT2. We are continuing to stabilize AAPT2 which enables incremental resource processing. If your build fails due to resource processing issue, please send us a bug report. To temporarily disable AAPT, set android.enableAapt2=false in your gradle.properties file. Roboelectric is currently not compatible with AAPT2
follow the below link
https://androidstudio.googleblog.com/2017/06/android-studio-30-canary-5-is-now.html
add this code in my project
android.enableAapt2=false
solved one of my issues: with Android Studio 3.0 : canary 6, Gen a signed APK by default which can't parsered by "AXmlResourceParser.java"(axmlprinter2-2.0.jar)
I had the same problem. To solve it, just update to Android Studio 3.0 Canary 7.
Fixes:
63623801 ResourceNotFoundException running Kotlin project on API 16 AVD after upgrading to Canary 6
Release notes