【发布时间】:2020-04-06 12:32:04
【问题描述】:
昨天我把flutter升级到了最新版本(1.12.13+hotfix.5),在构建flutter apk的时候出现如下错误
* What went wrong:
Execution failed for task ':sharesdk_plugin:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
/Users/binaryiv/Documents/projects/appProjects/huoli/app/build/sharesdk_plugin/intermediates/res/merged/release/values/values.xml:879: error: resource android:attr/fontVariationSettings not found.
/Users/binaryiv/Documents/projects/appProjects/huoli/app/build/sharesdk_plugin/intermediates/res/merged/release/values/values.xml:880: error: resource android:attr/ttcIndex not found.
error: failed linking references.
我的 compileSdkVersion 和 targetSdkVersion 是 28,我可以通过删除 sharesdk_plugin 插件来构建它。有没有其他方法可以通过构建来配置和保留插件
【问题讨论】: