aliossflutter icon indicating copy to clipboard operation
aliossflutter copied to clipboard

Android 打包时有问题

Open gaoyong06 opened this issue 4 years ago • 1 comments

E:\work\app>flutter build apk You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64. If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size. To generate an app bundle, run: flutter build appbundle --target-platform android-arm,android-arm64,android-x64 Learn more on: https://developer.android.com/guide/app-bundle To split the APKs per ABI, run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi Learn more on: https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split Running Gradle task 'assembleRelease'... ע: D:\Program Files\flutter.pub-cache\hosted\pub.flutter-io.cn\aliossflutter-0.0.4\android\src\main\java\com\jlcool\aliossflutter\AliossflutterPlugin.javaʹ����δ�����򲻰�ȫ�IJ�����

ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:unchecked ���±��롣

FAILURE: Build failed with an exception.

  • What went wrong:

Execution failed for task ':aliossflutter:verifyReleaseResources'.

A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

Android resource linking failed

 C:\Users\jywl\.gradle\caches\transforms-2\files-2.1\a528b13ac93e64cafa3d0480e2c93207\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/fontVariationSettings not found.



 C:\Users\jywl\.gradle\caches\transforms-2\files-2.1\a528b13ac93e64cafa3d0480e2c93207\core-1.1.0\res\values\values.xml:142:5-173:25: AAPT: error: resource android:attr/ttcIndex not found.
  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

gaoyong06 avatar May 16 '20 03:05 gaoyong06

同样遇到了,请解决

kira2015 avatar May 23 '20 09:05 kira2015