Execution failed for task ':jpush_flutter:verifyReleaseResources'.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':jpush_flutter:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\82cd59d859951119738e2c9418ad7744\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource andr
oid:attr/fontVariationSettings not found.

     C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\82cd59d859951119738e2c9418ad7744\core-1.0.0\res\values\values.xml:57:5-88:25: AAPT: error: resource andr
oid:attr/ttcIndex not found.

 

解决方法:

  1.  Android Studio -> External Libraries -> Flutter Plugins -> jpush_flutter_xxx  展开
  2. 编辑 android -> build.gradle,compileSdkVersion改为28
  3. 再次运行 flutter build apk

你可能感兴趣的:(flutter,学习经验)