[Android] More than one file was found with OS independent path 'META-INF/nanohttpd/mimetypes.properties'

676 views
Skip to first unread message

Sid Ferreira

unread,
Feb 17, 2020, 8:02:32 AM2/17/20
to Interactive Media Ads SDK
Hi! I'm adding the Android SDK to a project and I'm having the following error when running buildDebug or assembleDebug:

More than one file was found with OS independent path 'META-INF/nanohttpd/mimetypes.properties'

I googled around a bit and I tried both

packagingOptions {
    exclude 'META-INF/nanohttpd/default-mimetypes.properties'
}

and
packagingOptions {
    pickFirst 'META-INF/nanohttpd/default-mimetypes.properties'
}


but so far no results.

The full error given is attached and I'm when I try app:dependencies, it doesn't mention nanohttpd as a dependency for the IMA SDK.

Important to mention I'm only adding the SDK, there's no use yet.

Thanks in advance,
  Sid
error_stacktrace.txt
error_debug.txt

Sid Ferreira

unread,
Feb 17, 2020, 8:45:01 AM2/17/20
to Interactive Media Ads SDK
Seems that

packagingOptions {
    pickFirst 'META-INF/nanohttpd/*'
}


did the trick...

IMA SDK

unread,
Feb 17, 2020, 9:57:32 PM2/17/20
to sid...@gmail.com, ima...@googlegroups.com

Hi Sid,

 

Thank you for reaching out to us and for sharing your concern. There might be a duplicate META-INF folder somewhere in your project file that could cause this issue. However, glad to see that you've managed to fix the issue.

 

If you have further questions regarding the IMA SDK implementation, feel free to reply and we'll be glad to assist you.

 

Regards,

Sherwin Diesta

IMA SDK Team



ref:_00D1U1174p._5001UV1GUO:ref
Reply all
Reply to author
Forward
0 new messages