Total Method Count in my project is155,323. There are many libraries i am using.
First i was using play services like this.
compile 'com.google.android.gms:play-services:9.0.1'
I was getting ClassDefNotFound error in GoogleVR: related classes.
Then i removed the general library of play-services, and added the specific ones. The error was gone. I was happy and surprised.
Unfortunately the error has come again, Just after adding the following library i am getting ClassDefNotFound in one of my class.
repositories {
maven {
url "https://s3.amazonaws.com/repo.commonsware.com"
}
}
dependencies {
compile 'com.commonsware.cwac:merge:1.1.+'
}
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/video_lib/android/utils/NetworkClient;
If i remove commonsware library, It works fine, but the commonsware library is essential for some other API, and i have to use it.
The error may be due to gradle conflict. Kindly guide me how to identify and remove gradle-conflict.