Error compiling an android app to show it on the virtual machine

1

Hi, I'm following an android course and I got this error when trying my first job:

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished with non-zero exit value 1

I have tried it with Genymotion and it goes relatively well, only that there is a feature that does not execute it, for example that the keyboard appears when pressing on a Plain Text, for that reason I resort to the virtual machine of android (slower) and throws me that error.

I imagine that there is still a memory problem, since I only have 8GB of Ram and have open the android Studio plus the virtual machine and the other open pages of the browser where I follow the course, including the same operating system W10 should not be enough to run it in the best way.

Try trying to clean up the project but it still does not work.

    
asked by NextUsers 13.09.2016 в 02:59
source

2 answers

0

Thanks for the answer, but the real problem with my pc is that it is not compatible with Android because I have an AMD fx-6300 processor, which is short when compiling the test app and running it with the android emulator. even to occupy all the processor, in addition to all the RAM memory so I always presented an error when trying to execute it ...

As I have discovered how to activate the keyboard of the virtual device of Genymotion, since that virtual device works just like a physical one and I only had to enter the configuration and activate the corresponding option, of course I must do it whenever the emulator is executed again . This question would be resolved ...

I will only use the Genymotion emulator ...

    
answered by 13.09.2016 в 08:06
0

According to your error message:

  

Error: Execution failed for task ': app: transformClassesWithDexForDebug

It is determined that you must enable multidex support within your build.gradle file:

android {
    ...

    defaultConfig {
        // Habilita soporte multidex.
        multiDexEnabled true
    }
    ...
}

It's a problem similar to this thread:

link

    
answered by 13.09.2016 в 03:18