N.B. This Question Is not a match as I cant find any working solution.
I have used almost every process to solve this but still facing same.
First: multiDexEnabled true
Second: compile 'com.android.support:multidex:1.0.1'
Third: org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m
(in Local.properties
)
Fourth: android:name="android.support.multidex.MultiDexApplication"
(In manifest.xml)
Fifth: Clean & Rebuild
Sixth: File
< Invalidate cache & Restart
If anyone is looking for solution, These may work for you. But for me none are working.
What should I do ? (I'm working on Digital wallet project).
Errors: 1:
Error:Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Exception parsing classes
Error 2: Error:1 error; aborting
Error 3:
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: Return code 1 for dex process
build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.example.intuition.paytmprogress"
minSdkVersion 19
targetSdkVersion 26
versionCode 1
versionName "1.0"
multiDexEnabled true
// testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:multidex:1.0.1'
// PayTm
compile files('libs/PGSDK_V2.0.jar')
compile files('libs/paytm-checksum_2.0.jar')
compile files('libs/jackson-databind-2.9.1.jar')
//Freecharge
// compile 'com.android.support:support-v4:+'
// compile 'in.freecharge.checkout.android:freecharge-checkout-android-sdk:2.2@aar'
// compile 'in.juspay:godel:0.6.12.1423'
}