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

旧城冷巷雨未停 提交于 2019-11-30 02:54:31

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

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

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)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!