ko2ic / image_downloader

Flutter plugin that downloads images and movies on the Internet and saves to Photo Library on iOS or specified directory on Android.
https://pub.dartlang.org/packages/image_downloader#-readme-tab-
MIT License
92 stars 116 forks source link

Execution failed for task ':app:processDebugResources'. #7

Closed samycodes closed 5 years ago

samycodes commented 5 years ago

Hey I am using image_downloader: 0.11.1, Also I am not using Android X, because my other plugins are not working with that.

but I am getting this error while running flutter run

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  Output:  /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:188: error: resource android:attr/fontVariationSettings not found.
  /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:188: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

  Command: /Users/apple/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/634110a8b379185f0ac3a02fb852a873/aapt2-3.2.1-4818971-osx/aapt2 link -I\
          /Users/apple/Library/Android/sdk/platforms/android-27/android.jar\
          --manifest\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
          -o\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
          -R\
          @/Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          /Users/apple/Desktop/tripmate/tripmate/build/app/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
          --proguard-main-dex\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
          --custom-package\
          com.example.tripmate\
          -0\
          apk\
          --output-text-symbols\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/symbols/debug/R.txt\
          --no-version-vectors
  Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0
  Output:  /Users/apple/.gradle/caches/transforms-1/files-1.1/core-1.0.1.aar/0028747adfc894c91df75640f30b3d41/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.

  /Users/apple/.gradle/caches/transforms-1/files-1.1/core-1.0.1.aar/0028747adfc894c91df75640f30b3d41/res/values/values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.

  error: failed linking references.
  Command: /Users/apple/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/634110a8b379185f0ac3a02fb852a873/aapt2-3.2.1-4818971-osx/aapt2 link -I\
          /Users/apple/Library/Android/sdk/platforms/android-27/android.jar\
          --manifest\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
          -o\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
          -R\
          @/Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
          --auto-add-overlay\
          --java\
          /Users/apple/Desktop/tripmate/tripmate/build/app/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
          --proguard-main-dex\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt\
          --custom-package\
          com.example.tripmate\
          -0\
          apk\
          --output-text-symbols\
          /Users/apple/Desktop/tripmate/tripmate/build/app/intermediates/symbols/debug/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 42s

Gradle task 'assembleDebug'... Done                         43.4s
Gradle task assembleDebug failed with exit code 1

Can anyone help me with this?

samycodes commented 5 years ago

@ko2ic Plz help bro

ko2ic commented 5 years ago

@samycodes If you do not use AndroidX, please use v.0.9.2.