I didn\'t implement new libs but this problem occured while coding :
Error:Execution failed for task \':app:dexDebug\'.
com.android.ide.commo
Adding multiDexEnabled true in defaultConfig in build.gradle solved my problem
defaultConfig {
applicationId "com.example.project"
minSdkVersion 15
targetSdkVersion 21
versionCode 1
versionName "1.0.0"
multiDexEnabled true
}
You may have hit the 65k methods limit. To use Google Play Services with more granularity, follow this guide, you can use only the parts that you want. This will possibly fix your problem.
You can fix the limit issue by enabling multdex in your build.gradle by adding "multiDexEnabled true". For more information see http://android-developers.blogspot.com.es/2014/12/google-play-services-and-dex-method.html
Referred from Why did this happen? How do i fix this? Android: UNEXPECTED TOP-LEVEL EXCEPTION:.
I solved my problem with adding these in build gradle:
defaultConfig {
multiDexEnabled true
dependencies {
compile 'com.android.support:multidex:1.0.0'
another solution can be removing unnecessary libraries