Skip to content

Android Studio Troubleshooting

danny314 edited this page Nov 17, 2014 · 6 revisions

Issue: Android app build fails in Android Studio on Ubuntu with the error library 'lib32z1' or 'lib32stdc++6' not found.

Resolution: Install the following libs

sudo apt-get install lib32stdc++6

sudo apt-get install lib32z1


Issue: Android app build fails in Android Studio on Ubuntu with the error complaining about duplicate libraries during packaging

Resolution: Add the following to your build.gradle under 'android' section

packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
    }

Clone this wiki locally