Android Studio “error: failed to read metadata” after update to 3.0.0

巧了我就是萌 提交于 2019-11-30 09:58:55

I believe this is a bug in the new version of AAPT that comes with Android Studio 3.0.0

As a workaround, you can revert to an earlier version of AAPT by adding the line:

android.enableAapt2=false

to the file:

gradle.properties

This should also fix other problems with the upgrade to AAPT2.

The problem isn't the .flat files format. The issue is that AAPT2 has trouble linking some raw files (all files bigger than 68 MB, some files that are smaller too). Please follow the issue tracked on https://issuetracker.google.com/68425589 for updates.

Update:
The issue has now been fixed, so if you use AGP 3.2.0-alpha11 or newer you should not be getting this error anymore.

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