Generate APK - error

0

Hello, I'm trying to generate signed APK and it's giving error:

Error: The number of method references in a .dex file can not exceed 64K. Learn how to resolve this issue at link

Error: Execution failed for task ': app: transformClassesWithDexForRelease'.

  

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException

I think my app does not have more than 64K.

My Gradle looks like this: android {     compileSdkVersion 24     buildToolsVersion "24.0.2"

defaultConfig {
    applicationId "com.example.schwaner.teste"
    minSdkVersion 19
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}
buildTypes {
    debug {
        debuggable true
    }
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

dependencies {     compile fileTree (dir: 'libs', include: ['* .jar'])

compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.google.android.gms:play-services-appindexing:9.8.0'
compile 'com.facebook.fresco:fresco:0.14.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.google.android.gms:play-services:9.8.0'
compile 'com.android.support:cardview-v7:24.2.1'

}

Detail I am not using any Google service, is it normal to see two dependencies of Google?

In my Android Manifest there are also two Google keys.

What do I need to do to be able to generate the signed APK? Thank you.

    
asked by anonymous 12.12.2016 / 08:07

0 answers