Open haoyd opened 5 years ago
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.)
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.
Reduced it from 28.+ to 27.+
But 2.7 with OVAL shape is not working in Android P. Any hack for it?
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
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/processedres/debug/processDebugResources/out/resources-debug.ap\ -R\ @/Users/hhh/workspace/providerandroid/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