- More than one file was found with OS independent path ‘META-INF/proguard/androidx-annotations.pro’ #4299
- Comments
- Lexar7 commented Nov 11, 2018
- almic commented Nov 12, 2018
- almic commented Nov 12, 2018
- More than one file was found with OS independent path ‘META-INF/proguard/androidx-annotations.pro’ #4299
- Comments
- Lexar7 commented Nov 11, 2018
- almic commented Nov 12, 2018
- almic commented Nov 12, 2018
- More than one file was found with OS independent path ‘lib/armeabi-v7a/libcardioDecider.so #186
- Comments
- lantian699 commented Mar 21, 2017 •
- General information
- Issue description
- lantian699 commented Apr 11, 2017
- lkorth commented Apr 11, 2017
- lantian699 commented Apr 11, 2017 •
- lantian699 commented Apr 14, 2017 •
- More than one file was found with OS independent path ‘lib/x86/libc++_shared.so’ #52
- Comments
- zhouwenliang commented Sep 29, 2018
- The language of MMKV
- The version of MMKV
- The platform of MMKV
- The installation of MMKV
- What’s the issue?
- lingol commented Sep 29, 2018 •
- lingol commented Dec 14, 2018
- ollydixon commented Aug 8, 2019
- lingol commented Aug 9, 2019
- calvarez-ov commented Apr 2, 2020
- lingol commented Apr 2, 2020
- mail2chromium commented Jun 8, 2020
- lingol commented Jun 8, 2020
- AhmedAbuelenin commented Mar 22, 2021
- lingol commented Mar 22, 2021 •
More than one file was found with OS independent path ‘META-INF/proguard/androidx-annotations.pro’ #4299
Comments
Lexar7 commented Nov 11, 2018
Hi I have a problem with com.github.PhilJay:MPAndroidChart library I want to add to my project when I sync my project everything is ok but when I compile my project it appears this error and I don’t know why.
The problem says: More than one file was found with OS independent path ‘META-INF/proguard/androidx-annotations.pro’
It supposed that I put everything in the right place
build.gradle (Module app)
And my build.gradle (Project)
The text was updated successfully, but these errors were encountered:
almic commented Nov 12, 2018
So this seems to be a new problem with androidx, although I’ve yet to find any exact reason. I ran into a similar problem recently as well, and I have no idea what caused it or how exactly I fixed it. All you should have to do to fix this is to add this to the android < >section in your app’s ‘build.gradle’
If that doesn’t work, then I can’t really help. The best thing you can do is to search around stackoverflow.com until you find something that helps, because it seems like there are many ways this can happen.
almic commented Nov 12, 2018
I would actually suggest removing these lines from your dependencies to see if anything changes with the error or if it goes away completely:
I think that was how I fixed the problem in a recent project I made, where all I did was create a new project, included this library, and I instantly had a problem with the ‘LICENSE’ file. I think I removed those lines and my app started building correctly after that.
Another suggestion, and I don’t know if it’ll work, but you could try closing Android Studio, restarting your computer, and it might work. Like I said this seems to be caused by androidx and can be caused by many different things.
Источник
More than one file was found with OS independent path ‘META-INF/proguard/androidx-annotations.pro’ #4299
Comments
Lexar7 commented Nov 11, 2018
Hi I have a problem with com.github.PhilJay:MPAndroidChart library I want to add to my project when I sync my project everything is ok but when I compile my project it appears this error and I don’t know why.
The problem says: More than one file was found with OS independent path ‘META-INF/proguard/androidx-annotations.pro’
It supposed that I put everything in the right place
build.gradle (Module app)
And my build.gradle (Project)
The text was updated successfully, but these errors were encountered:
almic commented Nov 12, 2018
So this seems to be a new problem with androidx, although I’ve yet to find any exact reason. I ran into a similar problem recently as well, and I have no idea what caused it or how exactly I fixed it. All you should have to do to fix this is to add this to the android < >section in your app’s ‘build.gradle’
If that doesn’t work, then I can’t really help. The best thing you can do is to search around stackoverflow.com until you find something that helps, because it seems like there are many ways this can happen.
almic commented Nov 12, 2018
I would actually suggest removing these lines from your dependencies to see if anything changes with the error or if it goes away completely:
I think that was how I fixed the problem in a recent project I made, where all I did was create a new project, included this library, and I instantly had a problem with the ‘LICENSE’ file. I think I removed those lines and my app started building correctly after that.
Another suggestion, and I don’t know if it’ll work, but you could try closing Android Studio, restarting your computer, and it might work. Like I said this seems to be caused by androidx and can be caused by many different things.
Источник
More than one file was found with OS independent path ‘lib/armeabi-v7a/libcardioDecider.so #186
Comments
lantian699 commented Mar 21, 2017 •
General information
- SDK/Library version: 5.5.1
- Android Version and Device: Samsung S5 with Android 6.0
Issue description
I had this error when running app in Android Studio, complile is pass. I can’t understand why this error appears. And I found nothing in Internet for the similar error when using card.io. perhaps this is particular for my project due to different dependencies I used.
The text was updated successfully, but these errors were encountered:
lantian699 commented Apr 11, 2017
no one answer my question, I finally found that it is due to incompatibilities with Reach5 library.
lkorth commented Apr 11, 2017
Would you mind sharing the incompatibilities you ran into for anyone else that may run into this issue?
lantian699 commented Apr 11, 2017 •
I don’t have further information for this issue, I just test every library listed in my gradle file to verify which one can cause the conflict with card.io. finally that is reachFive (https://reachfive.co/en/) which we use to connect our app with social account. I’m working on it and i will go back here to post my solution if I could try to figure out.
lantian699 commented Apr 14, 2017 •
Since two weeks I’m stuck in it, finally I figure out the source of problem.
It is because that ReachFive Library (a library used in my project)has include an old version of CARD.IO for his PAYPAL service. So I found the exactly same .so file in his AAR. and my solution is brutal, I use winRAR to open directly its AAR library and delete JNI file completely for 2 reason below:
- The application needs just one set of .so file (needed for Card.IO) in JNI path, if two libraries contain the same .so files, it will create conflict obviously.
- We dont use the PAYPAL service provided in ReachFive Library. And even though we need it, I think its old Card.IO can also use this new version .so file, it depends on the compatibility I dont verify this point.
I have another solution which can simply eliminate this kind of error in order to build successfully the project. add this in gradle file:
Источник
More than one file was found with OS independent path ‘lib/x86/libc++_shared.so’ #52
Comments
zhouwenliang commented Sep 29, 2018
The language of MMKV
e.g. Objective-C, Swift, Java, or Kotlin
The version of MMKV
The platform of MMKV
The installation of MMKV
e.g. Cocoapods, Carthage, Maven, AAR Package or Git clone
What’s the issue?
Post the outputs or screenshots for errors.
Explain what you want by example or code in English.
More than one file was found with OS independent path ‘lib/x86/libc++_shared.so’
The text was updated successfully, but these errors were encountered:
lingol commented Sep 29, 2018 •
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
If you have a library that’s adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you’ll get the conflict.
lingol commented Dec 14, 2018
Now you get another choice, MMKV has a static-link version. Checkout our release note. (https://github.com/Tencent/MMKV/releases).
ollydixon commented Aug 8, 2019
@lingol after upgrading to AndroidX this solution doesn’t seem to work anymore.
lingol commented Aug 9, 2019
@lingol after upgrading to AndroidX this solution doesn’t seem to work anymore.
Try static link. com.tencent.mmkv-static:1.0.22
calvarez-ov commented Apr 2, 2020
Google is a good tool. Use it before asking questions.
I googled this and Google brought me here, to this snarky comment
lingol commented Apr 2, 2020
Google is a good tool. Use it before asking questions.
I googled this and Google brought me here, to this snarky comment
Wow, that’s the joke of the week in such a hard time due to the virus.
mail2chromium commented Jun 8, 2020
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
If you have a library that’s adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you’ll get the conflict.
Not fixed for me.
lingol commented Jun 8, 2020
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
If you have a library that’s adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you’ll get the conflict.
AhmedAbuelenin commented Mar 22, 2021
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
If you have a library that’s adding some android .so files –like libassmidi.so or libgnustl_shared.so– you have to tell gradle to pick just one when packaging, otherwise you’ll get the conflict.
I added this first but didn’t work but when i tried like that it worked successfully, thanks to lingol for the hint.
android <
packagingOptions <
pickFirst ‘lib/x86/libc++_shared.so’
pickFirst ‘lib/x86_64/libc++_shared.so’
pickFirst ‘lib/armeabi-v7a/libc++_shared.so’
pickFirst ‘lib/arm64-v8a/libc++_shared.so’
>
>
lingol commented Mar 22, 2021 •
Google is a good tool. Use it before asking questions.
As for this issue, the very first hit by Google has an answer.
Источник