Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gradle sync problem, multidexing issue

See original GitHub issue

Hi there. “theartofdev.edmodo:android-image-cropper:2.6.0” this is the version that i am using before android update to 3.1, and all was working fine. Since the update i had a multidex problem. (* What went wrong: Execution failed for task ‘:app:transformDexArchiveWithExternalLibsDexMergerForDebug’.

java.lang.RuntimeException: java.lang.RuntimeException: Unable to merge dex.)
i managed to trace the problem back to the image cropper gives me multiple errors if i have cropper set to2.6.0, if i set to 2.6.+ , i cannot sync gradle and problem with appcompact persists. if i comment out my cropper and comment out all related code in the project, my project builds fine and i can run program on device. not to sure if i am explaining the problem correctly.

this is my Gradle file. `android { compileSdkVersion 27 defaultConfig { applicationId “com.mymochi.magicmochi” minSdkVersion 16 targetSdkVersion 27 versionCode 1 versionName “1.0” testInstrumentationRunner “” } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘’ } } }

dependencies { implementation fileTree(dir: ‘libs’, include: [‘*.jar’]) implementation ‘’ implementation ‘’

implementation ''
implementation ''
implementation ''
// FirebaseUI for Firebase Realtime Database
implementation 'com.firebaseui:firebase-ui-database:3.2.1'

// FirebaseUI for Cloud Firestore implementation ‘com.firebaseui:firebase-ui-firestore:3.2.1’

// FirebaseUI for Firebase Auth implementation ‘com.firebaseui:firebase-ui-auth:3.2.1’ implementation ‘’ implementation ‘’ // FirebaseUI for Cloud Storage implementation ‘com.firebaseui:firebase-ui-storage:3.2.1’ testImplementation ‘junit:junit:4.12’ androidTestImplementation ‘🏃1.0.1’ androidTestImplementation ‘’

//Universal image loader
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

compile 'com.theartofdev.edmodo:android-image-cropper:2.6.0'
//Circle ImageView
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.squareup.okhttp:okhttp:2.7.2'

compile ''
compile ''
compile ''
compile 'com.github.ittianyu:BottomNavigationViewEx:1.2.4'
compile ""
compile ''

} apply plugin: ‘’`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

Hartie95commented, Mar 2, 2018

For me the easiest way to get it work was excluding the support libs from image-cropper, since I already include the libraries used by image cropper in my app:

    implementation ('com.theartofdev.edmodo:android-image-cropper:2.6.0'){

        exclude group: '', module: '*'


But only #496 will fix it completly

Eltonio099commented, Mar 2, 2018

use this one ‘com.theartofdev.edmodo:android-image-cropper:2.5.+’

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle project sync failed for android support multidex library
gradle file. You will get this error when editing android/build.gradle instead of android/app/build.gradle.
Read more >
Enable multidex for apps with over 64K methods
Learn how to enable an app configuration known as multidex, which allows your app to build and read multiple DEX files.
Read more >
Multidex in Android - GeeksforGeeks
Go to build.gradle file, inside that you will find the scope { } of defaultConfig then inside that scope just add multiDexEnabled =...
Read more >
build-system/changelog.txt - platform/tools/base - Git at Google
test applications are now not using multi-dexing, unless they test a library project. - Fixed lint issues 80872, 80834, 60416, 80837. 1.0.0-rc1.
Read more >
Dealing with the 64K Method Limit in Your Unity3D Game
Android Studio Projects may be synced with Gradle Projects. ... There is a host of other issues you may or may not encounter...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found