Android-Image-Cropper icon indicating copy to clipboard operation
Android-Image-Cropper copied to clipboard

Android resource linking failed in version 2.8.+

Open haoyd opened this issue 7 years ago • 5 comments

api 'com.theartofdev.edmodo:android-image-cropper:2.8.+' I use this version in my dependencies, then show the error below , It fixed after I changed the version to 2.7.+ .

Android resource linking failed Output: /Users/hhh/workspace/provider_android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found. /Users/hhh/workspace/provider_android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found. /Users/hhh/workspace/provider_android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:750: error: resource android:attr/fontVariationSettings not found. /Users/hhh/workspace/provider_android/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:750: error: resource android:attr/ttcIndex not found. error: failed linking references. Command: /Users/hhh/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/59dd97d8368cad2a40348e21c143a34a/aapt2-3.2.1-4818971-osx/aapt2 link -I
/Users/haoyundong/tools/adt-bundle-mac-x86_64-20140702/sdk/platforms/android-27/android.jar
--manifest
/Users/hhh/workspace/provider_android/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/Users/hhh/workspace/provider_android/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/Users/hhh/workspace/provider_android/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/Users/hhh/workspace/provider_android/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--proguard-main-dex
/Users/hhh/workspace/provider_android/app/build/intermediates/legacy_multidex_aapt_derived_proguard_rules/debug/processDebugResources/manifest_keep.txt
--custom-package
com.sample.demo
-0
apk
--output-text-symbols
/Users/hhh/workspace/provider_android/app/build/intermediates/symbols/debug/R.txt
--no-version-vectors Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

haoyd avatar Dec 21 '18 02:12 haoyd

I had a similar problem, what I did to solve it was change my compileSdkVersion and targetSdkVersion to 28 in the app module's build.gradle file, and then migrate the project to AndroidX using Android Studio ("Tools > Migrate to AndroidX", or something along those lines.)

evstraw avatar Jan 02 '19 03:01 evstraw

following solution worked for me; using this library with Kotlin:

In build.gradle (Module: app) replace this: api 'com.theartofdev.edmodo:android-image-cropper:2.8.+' with this: api 'com.theartofdev.edmodo:android-image-cropper:2.7.0'

It may give you warning but works for me.

BilalRabbani avatar Feb 27 '19 20:02 BilalRabbani

Reduced it from 28.+ to 27.+

aodr3w avatar Mar 05 '19 07:03 aodr3w

But 2.7 with OVAL shape is not working in Android P. Any hack for it?

pratik42 avatar Mar 19 '19 10:03 pratik42

following solution worked for me; using this library with Kotlin:

In build.gradle (Module: app) replace this: api 'com.theartofdev.edmodo:android-image-cropper:2.8.+' with this: api 'com.theartofdev.edmodo:android-image-cropper:2.7.0'

It may give you warning but works for me.

Thanks It works for me

hungntv avatar Apr 16 '19 08:04 hungntv