WANAndroid_Proj icon indicating copy to clipboard operation
WANAndroid_Proj copied to clipboard

Failed to process resources, see aapt output above for details.

Open y-xue92 opened this issue 6 years ago • 1 comments

hello : 我下载了你的工程,但是运行不了,请问下面这个问题如何解决? Launching lib/main.dart on VOG AL10 in debug mode... Initializing gradle... Resolving dependencies... Running Gradle task 'assembleDebug'... /home/pateo/.gradle/caches/transforms-1/files-1.1/appcompat-1.0.2.aar/8b4f5a039238e5998c8f51873535cbdf/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.

/home/pateo/Downloads/WANAndroid_Proj-master/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.

/home/pateo/.gradle/caches/transforms-1/files-1.1/appcompat-1.0.2.aar/8b4f5a039238e5998c8f51873535cbdf/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.

/home/pateo/.gradle/caches/transforms-1/files-1.1/appcompat-1.0.2.aar/8b4f5a039238e5998c8f51873535cbdf/res/values/values.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:processDebugResources'.

Failed to process resources, see aapt output above for details.

  • 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 1s Finished with error: Gradle task assembleDebug failed with exit code 1


The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See https://goo.gl/CP92wY for more information on the problem and how to fix it.


y-xue92 avatar Nov 18 '19 02:11 y-xue92

看起来似乎是一些资源文件缺失,你可以吧lib文件直接复制到新项目里,把第三方包引入一下,这样应该可以避免

mhgd3250905 avatar Nov 20 '19 01:11 mhgd3250905