android-image-picker icon indicating copy to clipboard operation
android-image-picker copied to clipboard

> More than one file was found with OS independent path 'META-INF/androidx.legacy_legacy-support-core-utils.version'

Open AnjaniJoshi opened this issue 7 years ago • 5 comments

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

More than one file was found with OS independent path 'META-INF/androidx.legacy_legacy-support-core-utils.version'

  • 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 16s 29 actionable tasks: 24 executed, 5 up-to-date

AnjaniJoshi avatar Mar 14 '19 07:03 AnjaniJoshi

Have you tried this @AnjaniJoshi ?

https://stackoverflow.com/questions/44342455/more-than-one-file-was-found-with-os-independent-path-meta-inf-license

esafirm avatar Mar 23 '19 03:03 esafirm

Yes but not resolved yet .

On Sat, 23 Mar 2019 at 08:49, Esa Firman [email protected] wrote:

Have you tried this @AnjaniJoshi https://github.com/AnjaniJoshi ?

https://stackoverflow.com/questions/44342455/more-than-one-file-was-found-with-os-independent-path-meta-inf-license

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/esafirm/android-image-picker/issues/209#issuecomment-475834787, or mute the thread https://github.com/notifications/unsubscribe-auth/ANjpHAwJ6B-n41VdLg6TCIRKpGvX1huwks5vZZ0sgaJpZM4bzcbv .

AnjaniJoshi avatar Mar 23 '19 16:03 AnjaniJoshi

I personally think exclude line below will solve the problem

exclude 'META-INF/androidx.legacy_legacy-support-core-utils.version'

Will try this later in sample project.

Can you give me your dependency list?

esafirm avatar Mar 24 '19 04:03 esafirm

Dear esafirm, I tried the exclude line

exclude 'META-INF/androidx.legacy_legacy-support-core-utils.version'

However, it did not work. What else can I do?

My dependencies list (from build.gradle (Module:app)): `dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'

}`

iamsardorbek avatar Mar 19 '20 15:03 iamsardorbek

same with me.before this the project is ok. but now cannot build it.

zawawimanja avatar Apr 22 '20 18:04 zawawimanja

This is obviously an issue in the artifact merger. Will closing this because it's in the scope of library issue

esafirm avatar Nov 19 '22 23:11 esafirm