Android Build Apk - Error - App:transformclasseswithdexfordebug'

Discussion in 'Technical Discussion' started by mousik, Apr 14, 2017.

  1. mousik

    mousik Boxer

    Joined:
    Apr 1, 2017
    Messages:
    23
    Likes Received:
    1
    Hello guys, please, I need help.

    In Android studio I did:

    build.gradle
    multiDexEnabled true

    sourceSets.main {
    jni.srcDirs = []// <-- disable automatic ndk-build call
    }

    dependencies {
    compile ('com.google.android.gms:play-services:+'){exclude module: 'support-v4'}
    compile files('libs/dagger-1.2.2.jar')
    compile files('libs/javax.inject-1.jar')
    compile files('libs/nineoldandroids-2.4.0.jar')
    compile files('libs/support-v4-19.0.1.jar')
    compile ('com.android.support:multidex:1.0.1')
    }

    gradle.properties
    android.useDeprecatedNdk=true

    local.properties
    ndk.dir=C\:\\Users\\mousik\\AppData\\Local\\Android\\ndk

    Manifest
    android:name="android.support.multidex.MultiDexApplication"


    Then I cleand project, restared android studio ---> build APK ---> I got this error:

    ERROR

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

    > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.android.dx.command.Main with arguments {--dex --num-threads=4 --multi-dex --main-dex-list C:\Users\mousik\Desktop\BUILDBOX\VOLUNTEER\STUDIO\app\build\intermediates\multi-dex\debug\maindexlist.txt --output C:\Users\mousik\Desktop\BUILDBOX\VOLUNTEER\STUDIO\app\build\intermediates\transforms\dex\debug\folders\1000\1f\main C:\Users\mousik\Desktop\BUILDBOX\VOLUNTEER\STUDIO\app\build\intermediates\transforms\jarMerging\debug\jars\1\1f\combined.jar}



    Please, can you help me? THANK YOU
     
  2. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    Use only Eclipse.
    https://www.buildbox.com/publish-android-build-for-google-play/

    Follow the tutorials,
    http://buildbox.com/forum/index.php?threads/are-there-any-bb-code-helpers.482/#post-2893
    http://buildbox.com/forum/index.php...pse-java-and-android-sdk-video-tutorial.2794/

    JDK 1.7 and install Android SDK with Eclipse.

    If you continue to have problems, PM to connect to your PC via Teamviewer.
     
  3. mousik

    mousik Boxer

    Joined:
    Apr 1, 2017
    Messages:
    23
    Likes Received:
    1
    I thought that Eclipse is deprecated :O Because JDK 1.7 cant be downloaded and so on... :/
     
  4. mousik

    mousik Boxer

    Joined:
    Apr 1, 2017
    Messages:
    23
    Likes Received:
    1
    Now I am getting this error in eclipse :(
     

    Attached Files:

  5. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,193
    Likes Received:
    541
    Last edited: Apr 14, 2017

Share This Page