Android Studio 3.0 Canary 6 release bug android.content.res.Resources$NotFoundException
2017-07-17 10:44
525 查看
最新的Android Studio3.0预览版在打包编译的时候, 安装会导致无法找到资源, 尤其是对于低版本的Android5.0以下的系统出现不兼容, 这个问题可能是由于AAPT2编译的bug, 目前(2017/07/17)还没有得到修复, 希望google发布正式版的时候修复这个不过.
现在的解决方案: 在项目根目录下 gradle.properties 文件中添加如下行(关闭AAPT2)
android.enableAapt2=false
务必清理项目一次再运行, 因为最新的Android Studio会尽量使用缓存, 增量编译会很快
现在的解决方案: 在项目根目录下 gradle.properties 文件中添加如下行(关闭AAPT2)
android.enableAapt2=false
务必清理项目一次再运行, 因为最新的Android Studio会尽量使用缓存, 增量编译会很快
相关文章推荐
- bug android.content.res.Resources$NotFoundException: String resource ID #0x0
- Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f070058 android-studio 3.0 from canary 5 to canary 6
- 一个ButterKnife引起的bug-android.content.res.Resources$NotFoundException
- 【BUG】android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from
- 【BUG】android.content.res.Resources$NotFoundException: File res/drawable-xxhdpi/toolbar_line.png from
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- 踩坑实录 android.content.res.Resources$NotFoundException: String resource ID #0x0
- 资源文件么有找到异常:android.content.res.Resources$NotFoundException: String resource ID #0x4
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- Caused by: android.content.res.Resources$NotFoundException
- android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- 错误: android.content.res.Resources$NotFoundException: String resource ID #0x4
- Error:android.content.res.Resources$NotFoundException:
- android.content.res.Resources$NotFoundException 的解决方法
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- 解决android.content.res.Resources NotFoundException的一个方法
- android.content.res.Resources$NotFoundException: String resource ID #0x1
- Android报“android.content.res.Resources$NotFoundException: String resource ID #0x2”错误
- 关于android.content.res.Resources$NotFoundException: String resource ID #0x1错误的产生