Java/Android
39_안드로이드 스튜디오 오류
우오우어아오앙
2016. 10. 17. 14:16
728x90
SMALL
안드로이드 스튜디오 에러 모음
the number of method references in a .dex file cannot exceed 64k
build.gradle (Module: app) 파일 수정
빨간 부분 추가
android {
defaultConfig {
...
multiDexEnabled true
}
...
}
UNEXPECTED TOP-LEVEL EXCEPTION
build.gradle (Module: app) 파일 수정
빨간 부분 삭제
android {
defaultConfig {
...
}
...
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:design:24.1.1'
compile 'com.google.android.gms:play-services:9.6.1'
}
참조 : http://stackoverflow.com/questions/21102598/android-studio-unexpected-top-level-exception
728x90
반응형
LIST