WindSekirun / NaraeImagePicker

MultiImagePicker for Android Application, written in Kotlin
Apache License 2.0
40 stars 14 forks source link

More than one file was found with OS independent path 'META-INF/library_release.kotlin_module' #7

Closed jerinamathews closed 5 years ago

jerinamathews commented 6 years ago

Couldn't resolve it .

WindSekirun commented 6 years ago

It is not reproduced in my environment, but it will work if you write the following code in app/build.gradle.

packagingOptions {
        exclude 'META-INF/library_release.kotlin_module'
}

ex) this gist

WindSekirun commented 6 years ago

for more info, please see https://stackoverflow.com/questions/44509608/duplicate-files-copied-in-apk-meta-inf-library-release-kotlin-module

jerinamathews commented 6 years ago

When i use

packagingOptions { exclude 'META-INF/library_release.kotlin_module' }

am getting compilation failed to complete. And the issue is 'Program type already present: com.android.vending.billing.IInAppBillingService$Stub$Proxy'

On Tue, Jun 19, 2018 at 6:27 PM WindSekirun (DongGil, Seo) < notifications@github.com> wrote:

for more info, please see https://stackoverflow.com/questions/44509608/duplicate-files-copied-in-apk-meta-inf-library-release-kotlin-module

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WindSekirun/NaraeImagePicker/issues/7#issuecomment-398389368, or mute the thread https://github.com/notifications/unsubscribe-auth/ALjahlaucvJ2-DwWGBvx-sMLS4svHxueks5t-PVOgaJpZM4UtYJs .

-- Regards, Jerin A Mathews Chief Technology Officer https://in.linkedin.com/in/jerinamathews

WindSekirun commented 6 years ago

Hmm.. i think you have dependency problem. This library have dependency 'RichUtilsKt (https://github.com/WindSekirun/RichUtilsKt)' which contains InAppBillingService.aidl. if you have InAppBilling.aidl file in project, please delete it. you shoudn't keep two (or more) similar class.

Bhavesh-Moradiya commented 5 years ago

I'm having same problem and I tried this

packagingOptions { exclude 'META-INF/library_release.kotlin_module' }

worked for me....

Thanks

WindSekirun commented 5 years ago

Close cause inactivity.