`
dengzhangtao
  • 浏览: 677222 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

使用KEYBOARD_VISIBILITY第三方,FLUTTER BUILD APK报错

 
阅读更多
记录问题:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':keyboard_visibility:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  E:\android\flutter-project\flutter_hrlweibo-master\build\keyboard_visibility\intermediates\res\merged\release\values\values.xml:171: error: resource android:attr/fontVariationSettings not found.
  E:\android\flutter-project\flutter_hrlweibo-master\build\keyboard_visibility\intermediates\res\merged\release\values\values.xml:172: error: resource android:attr/ttcIndex not found.
  error: failed linking references.


分析问题:第三方的build.gradle 指定的android 编译版本和代码不同


解决:
使用AndroidStudio打开根目录,在左侧Project最下方的External Libraries里面中的Flutter Plugins中,找到keyboard_visibility这个插件的build.gradle,然后把compileSdkVersion修改为和你的主项目中的compileSdkVersion版本一致,重新运行flutter build apk即可
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics