Launching libmain.dart on Nokia X6 in debug mode... FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:processDebugResources'. > Android resource linking failed Output: E:Flutter Projectsintro_to_flutteruildappintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. E:Flutter Projectsintro_to_flutteruildappintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. E:Flutter Projectsintro_to_flutteruildappintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:959: error: resource android:attr/fontVariationSettings not found. E:Flutter Projectsintro_to_flutteruildappintermediatesincrementalmergeDebugResourcesmerged.dirvaluesvalues.xml:960: error: resource android:attr/ttcIndex not found. error: failed linking references. Command: C:Usershupo3.gradlecaches ransforms-1files-1.1aapt2-3.2.1-4818971-windows.jarc1441429ce2aae0e0bed3ad48db2b49eaapt2-3.2.1-4818971-windowsaapt2.exe link -I C:Usershupo3AppDataLocalAndroidsdkplatformsandroid-27android.jar --manifest E:Flutter Projectsintro_to_flutteruildappintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml -o E:Flutter Projectsintro_to_flutteruildappintermediatesprocessed_resdebugprocessDebugResourcesout esources-debug.ap_ -R @E:Flutter Projectsintro_to_flutteruildappintermediatesincrementalprocessDebugResources esources-list-for-resources-debug.ap_.txt --auto-add-overlay --java E:Flutter Projectsintro_to_flutteruildappgenerated ot_namespaced_r_class_sourcesdebugprocessDebugResources --custom-package com.xiaobing.introtoflutter -0 apk --output-text-symbols E:Flutter Projectsintro_to_flutteruildappintermediatessymbolsdebugR.txt --no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0 Output: C:Usershupo3.gradlecaches ransforms-1files-1.1appcompat-v7-28.0.0.aar12aaee80bab0fcaef8511d3958ba785b esvalues-v28values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found. E:Flutter Projectsintro_to_flutteruildappintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found. C:Usershupo3.gradlecaches ransforms-1files-1.1support-compat-28.0.0.aar1fc0e0ff1348f4d278539eb80ede9d3 esvaluesvalues.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found. C:Usershupo3.gradlecaches ransforms-1files-1.1support-compat-28.0.0.aar1fc0e0ff1348f4d278539eb80ede9d3 esvaluesvalues.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found. error: failed linking references. Command: C:Usershupo3.gradlecaches ransforms-1files-1.1aapt2-3.2.1-4818971-windows.jarc1441429ce2aae0e0bed3ad48db2b49eaapt2-3.2.1-4818971-windowsaapt2.exe link -I C:Usershupo3AppDataLocalAndroidsdkplatformsandroid-27android.jar --manifest E:Flutter Projectsintro_to_flutteruildappintermediatesmerged_manifestsdebugprocessDebugManifestmergedAndroidManifest.xml -o E:Flutter Projectsintro_to_flutteruildappintermediatesprocessed_resdebugprocessDebugResourcesout esources-debug.ap_ -R @E:Flutter Projectsintro_to_flutteruildappintermediatesincrementalprocessDebugResources esources-list-for-resources-debug.ap_.txt --auto-add-overlay --java E:Flutter Projectsintro_to_flutteruildappgenerated ot_namespaced_r_class_sourcesdebugprocessDebugResources --custom-package com.xiaobing.introtoflutter -0 apk --output-text-symbols E:Flutter Projectsintro_to_flutteruildappintermediatessymbolsdebugR.txt --no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-windows 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 18s Gradle task assembleDebug failed with exit code 1 Exited (sigterm)
打开androidappuild.gradle
修改 compileSdkVersion 和 targetSdkVersion