Error adding certain libraries in Android Studio, APK META-INF / LICENSE

1

It turns out that I am passing an application that I made in java to android but when copying the libraries to the Android libs folder when running the app I get an error which is the following:

This only happens with some libraries and I understand that it says they are duplicated or something like that ..

I would like you to explain me why this error comes out exactly and how to solve it if it is possible.

these are the libraries that I add to the project:

By the way, this error comes to me even without adding code to the app.

    
asked by Alexis Rodriguez 17.05.2017 в 15:24
source

1 answer

0

You certainly have duplicate files, in your file app/build.gradle , add the option section packagingOptions , exclude the files:

android {

    packagingOptions {
       exclude 'META-INF/DEPENDENCIES.txt'
       exclude 'META-INF/DEPENDENCIES'
       exclude 'META-INF/dependencies.txt'
       exclude 'META-INF/LICENSE.txt'
       exclude 'META-INF/LICENSE'
       exclude 'META-INF/license.txt'
       exclude 'META-INF/NOTICE.txt'
       exclude 'META-INF/NOTICE'
       exclude 'META-INF/notice.txt'
       exclude 'META-INF/LGPL2.1'

    }
}
    
answered by 17.05.2017 в 16:00
yii\base\ErrorException
Copied! Copy Stacktrace Search Stackoverflow Search Google Error

PHP Core Warningyii\base\ErrorException

PHP Startup: Unable to load dynamic library 'memcached.so' (tried: /usr/lib/php/20190902/memcached.so (/usr/lib/php/20190902/memcached.so: undefined symbol: igbinary_serialize), /usr/lib/php/20190902/memcached.so.so (/usr/lib/php/20190902/memcached.so.so: cannot open shared object file: No such file or directory))

$_GET = [
    'id' => '19594',
    'url' => 'error-adding-certain-libraries-android-studio-apk-meta-inf-l',
];

$_COOKIE = [
    'advanced-frontend' => 'm4qamfcubgs31bmain62shu14l',
    '_csrf-frontend' => '4b06c985f01dab7ceed47e9c5e44e4add365019b770a853af3a06eabd87a450da:2:{i:0;s:14:"_csrf-frontend";i:1;s:32:"6SS1knMDQj-mPhPOtkEFzC082DR3EbO3";}',
];

$_SESSION = [
    '__flash' => [],
];