flutter 打包bug Execution failed for task ':image_editor_common:verifyReleaseReso

6 阅读1分钟

简单记录一下

> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
   > Android resource linking failed
     ERROR:AAPT: aapt2 E 01-03 09:46:14 60379 5913698 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
     aapt2 E 01-03 09:46:14 60379 5913698 ApkAssets.cpp:149] Failed to load resources table in APK '/Users/allyn/Library/Android/sdk/platforms/android-35/android.jar'.
     error: failed to load include path /Users/allyn/Library/Android/sdk/platforms/android-35/android.jar.

上面时报错,

解决方式: 找到 flutter plugins 文件夹 下的image_editor_common依赖库,找到android-build.gradle 把sdk 35 配置改成 34 就可以了,

其他类似提示找不到sdk资源库的都可以尝试用这种方式解决。