読者です 読者をやめる 読者になる 読者になる

google play のライブラリを入れたら Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'comm

Android AndroidStudio Gradle

google play のライブラリを入れたら

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 2

http://stackoverflow.com/questions/32807587/com-android-build-transform-api-transformexception

build.gradle のdefaultConfig に "multiDexEnabled true"追加。

android {
    ...
    defaultConfig {
        ...
        multiDexEnabled true
    }
}