这个错误仍然没有解决方案,任何人都可以解决

时间:2019-07-12 08:24:24

标签: java android flutter

FAILURE: Build failed with an exception.

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

Android resource linking failed
  Output:  warn: removing resource com.cranium.klukoo:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value.
  /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:821: error: resource android:attr/fontVariationSettings not found.
  /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:821: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

  Command: /home/cranium/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/e7ca0b98509176b8328dcf4d3866d46d/aapt2-3.2.1-4818971-linux/aapt2 link -I\
          /home/cranium/Android/Sdk/platforms/android-27/android.jar\
          --manifest\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
          -o\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
          -R\
          @/home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
          --custom-package\
          com.cranium.klukoo\
          -0\
          apk\
          --output-text-symbols\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/symbols/debug/R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-linux Daemon #0
  Output:  warn: removing resource com.cranium.klukoo:string/com_facebook_loginview_logged_in_using_facebook_f1gender without required default value.
  /home/cranium/.gradle/caches/transforms-1/files-1.1/appcompat-1.0.1.aar/9684773375968defd5bc54d96d59b1c6/res/values-v28/values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.

  /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: AAPT: error: resource android:attr/dialogCornerRadius not found.

  /home/cranium/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/f6987279dbc80bfa50498411ccc9c780/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.

  /home/cranium/.gradle/caches/transforms-1/files-1.1/core-1.0.0.aar/f6987279dbc80bfa50498411ccc9c780/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.

  error: failed linking references.
  Command: /home/cranium/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/e7ca0b98509176b8328dcf4d3866d46d/aapt2-3.2.1-4818971-linux/aapt2 link -I\
          /home/cranium/Android/Sdk/platforms/android-27/android.jar\
          --manifest\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
          -o\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
          -R\
          @/home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
          --custom-package\
          com.cranium.klukoo\
          -0\
          apk\
          --output-text-symbols\
          /home/cranium/Desktop/project/klukoo-flutter/build/app/intermediates/symbols/debug/R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-linux 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 13s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.
See https:          for more information on the problem and how to fix it.
*******************************************************************************************
Finished with error: Gradle task assembleDebug failed with exit code 1

0 个答案:

没有答案