android - Process 'command 'C:\Program Files\Java\jdk1.8.0_25\bin\java.exe'' finished with non-zero exit value 1 -


i new android development , tried run project; insted plugged in own mobile phone(android) usb , ran got 1 error:

error:execution failed task ':app:transformclasseswithmultidexlistfordebug'. com.android.build.api.transform.transformexception:  com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\program files\java\jdk1.7.0_79\bin\java.exe'' finished non-zero exit value 1 

build.gradle file:

apply plugin: 'com.android.application'  android { compilesdkversion 23 buildtoolsversion "24.0.0"  defaultconfig {     applicationid "com.example.axel.test"     minsdkversion 15     targetsdkversion 23     versioncode 1     versionname "1.0"     multidexenabled true } buildtypes {     release {         minifyenabled false         proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro'     } } }  dependencies { compile filetree(dir: 'libs', include: ['*.jar']) testcompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.android.support:support-v4:24.0.0' compile 'com.android.support:multidex:1.0.0' } 

see multidexenabled used cross limit of 64k methods, required in dalvik system.

reference link - https://developer.android.com/studio/build/multidex.html

remove line build.gradle

multidexenabled true 

Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -