Open AbhimanyuDatta opened 5 years ago
I just ran into this issue as well. When you open the Merged Manifest view of AndroidManifest.xml, do you see an error complaining that tools:replace has no value specified in app main (or something along those lines)?
That's the erorr I saw, and I added another property to the application element to specify the appComponentFactory to use (still not sure if this is the right one)
android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
tools:replace="android:appComponentFactory"
The tools:replace property is used to override properties that conflict when merging manifests. So I think it also requires a value to be set. See the docs for more information. https://developer.android.com/studio/build/manifest-merge
I am having the same problem. I am currently using the Pixel 2XL with android Pie. It is crashing with the previous version 2.7, and with the new one 2.8 I am having this problem with Manifest Merged Fail. If I try to put tools:replace="android:appComponentFactory", however the Kotlin extensions stops to be recognised and other errors happens.
Some gradle informations:
compileSdkVersion 28 implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:support-v4:28.0.0'
i also this issue, any solution ?
I have same issue
i also have the same issue, this is a good library, hope the author can solve it
any update and solution ?
I have the same problem
Any solution ???
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to
How can solve this issue , this is a good library. implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
For me the Manifest merger fails when I add in build.gradle
the dependency
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
together with at least one of these dependencies:
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
and apply Sync Now...
Please help!
use 2.7.0 instead, which helps
I just ran into this issue as well. When you open the Merged Manifest view of AndroidManifest.xml, do you see an error complaining that tools:replace has no value specified in app main (or something along those lines)?
That's the erorr I saw, and I added another property to the application element to specify the appComponentFactory to use (still not sure if this is the right one)
android:appComponentFactory="android.support.v4.app.CoreComponentFactory" tools:replace="android:appComponentFactory"
The tools:replace property is used to override properties that conflict when merging manifests. So I think it also requires a value to be set. See the docs for more information. https://developer.android.com/studio/build/manifest-merge
I get packaging error with androidx components on adding this in manifest
use 2.7.0 instead, which helps
For the moment this is a working solution.
Just ignoring the warning about dependencies in build.gradle
:
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0, 27.1.1. Examples include com.android.support:animated-vector-drawable:28.0.0 and com.android.support:exifinterface:27.1.1...
i have same issue.
same issue here
Same issue here...
2.7.0 works fine... But...
Same issue here :/
Same here..
2.7.0 works fine... But...
but...could you enlighten me enlighten me what are the differences between 2.7 & 2.8?
@ffischer1984
Update to support library to AndroidX
So if you need use version 2.8 when you need update your project to Android X https://developer.android.com/jetpack/androidx/migrate
for me 2.7 worked
migrated to AndroidX, version 2.8 will work.
Using 2.7 worked for me. It seems 2.8 is built for Android X Projects
Please remove the AndroidX support! Many of us can't upgrade our massive projects to AndroidX yet, making it impossible to use 2.8.0 of this library. 2.7.0 has a major bug that causes Android Pie devices to crash when cropping which was fixed in 2.8.0, so right now your library is effectively broken for anyone who can't update to AndroidX yet.
2.7.0 works fine... But...
but...could you enlighten me enlighten me what are the differences between 2.7 & 2.8?
Version 2.7 doesn't work on devices running Android 9 (Pie)
For anyone interested I build a non AndroidX version.
I added it to to this comment as a .aar file. To include it into your project place the .aar file into <project>/app/libs folder.
Then to implement it into your build.gradle:
For your <project>/app/build.gradle add this to your dependencies
implementation(name: 'android-image-cropper-2.8.0-nonX', ext: 'aar') { transitive = true }
For your <project>/build.gradle add this to your allprojects > repositories (I added it at the bottom)
flatDir{ dirs 'libs' }
For All Those getting Merging Error use 2.5.0 version that is implementation 'com.theartofdev.edmodo:android-image-cropper:2.5.0' it will work now .I guess some error with new version compatibility
In my case, I solved the problem by modifying build.gradle(Modules) as follows.
implementation 'com.android.support:appcompat-v7:26.0.2' implementation 'com.android.support:design:26.0.2'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.5.0'
ps. I was angry for about two days, but fortunately I was working normally.
2.7.0 works fine...
Today 23/04/2019 Work for me
Tried to include the library but got this error.
So, I added the tools:replace="android:appComponentFactory" to manifest and since then I'm getting