➜ flutter_plan_demo git:(master) ✗ flutter build apk --target-platform android-arm,android-arm64 --split-per-abi
[!] Your app isn't using AndroidX.
To avoid potential build failures, you can quickly migrate your app by following the
steps on https://goo.gl/CP92wY.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processReleaseResources'.
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.
log
➜ flutter_plan_demo git:(master) ✗ flutter build apk --target-platform android-arm,android-arm64 --split-per-abi [!] Your app isn't using AndroidX. To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processReleaseResources'.
Command: /Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/067c550bab45744a730d55ac6d07bb79/aapt2-3.2.1-4818971-osx/aapt2 link -I\ /Users/dengwenhao/Library/Android/sdk/platforms/android-27/android.jar\ --manifest\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/merged_manifests/release/processReleaseManifest/merged/armeabi-v7a/AndroidManifest.xml\ -o\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/processedres/release/processReleaseResources/out/resources-armeabi-v7aRelease.ap\ -R\
@/Users/dengwenhao/coding/learn/flutter_plandemo/build/app/intermediates/incremental/processReleaseResources/resources-list-for-resources-armeabi-v7aRelease.ap.txt\ --auto-add-overlay\
--java\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/generated/not_namespaced_r_class_sources/release/processReleaseResources/r\ --proguard\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/proguard-rules/release/aapt_rules.txt\ --custom-package\
com.ontow.flutterplangame\
-0\
apk\
--output-text-symbols\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/symbols/release/R.txt\ --no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
Output: /Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/support-compat-28.0.0.aar/d1e31fc57430ff614027e4e63f629ecb/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
/Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/support-compat-28.0.0.aar/d1e31fc57430ff614027e4e63f629ecb/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: /Users/dengwenhao/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/067c550bab45744a730d55ac6d07bb79/aapt2-3.2.1-4818971-osx/aapt2 link -I\ /Users/dengwenhao/Library/Android/sdk/platforms/android-27/android.jar\ --manifest\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/merged_manifests/release/processReleaseManifest/merged/armeabi-v7a/AndroidManifest.xml\ -o\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/processedres/release/processReleaseResources/out/resources-armeabi-v7aRelease.ap\ -R\
@/Users/dengwenhao/coding/learn/flutter_plandemo/build/app/intermediates/incremental/processReleaseResources/resources-list-for-resources-armeabi-v7aRelease.ap.txt\ --auto-add-overlay\
--java\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/generated/not_namespaced_r_class_sources/release/processReleaseResources/r\ --proguard\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/proguard-rules/release/aapt_rules.txt\ --custom-package\
com.ontow.flutterplangame\
-0\
apk\
--output-text-symbols\
/Users/dengwenhao/coding/learn/flutter_plan_demo/build/app/intermediates/symbols/release/R.txt\ --no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
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
BUILD FAILED in 20s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 21.4s Gradle task assembleRelease failed with exit code 1