Android Studio 3.0 : canary 6 : android.content.res.Resources$NotFoundException inside Launching activity

前端 未结 4 1530
无人共我
无人共我 2020-12-28 13:51

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

相关标签:
4条回答
  • 2020-12-28 14:29

    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.

    0 讨论(0)
  • 2020-12-28 14:29

    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

    0 讨论(0)
  • 2020-12-28 14:39

    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)

    0 讨论(0)
  • 2020-12-28 14:44

    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

    0 讨论(0)
提交回复
热议问题