Mobile/Android
multidex android studio
까리송
2015. 10. 30. 21:00
반응형
multidex android studio 스튜디오에서 이런 에러가 나는구나.. 뭐이러지.. 메소드가 얼마나 많을텐데..휴
리빌드계속하고 클린만 하고있엇음..
이 글을 참고하시고
Application 안에다가 추가
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
MultiDex.install(this);
}
build.gradle
defaultConfig {
multiDexEnabled true
}
compile'com.android.support:multidex:1.0.1'
그리고 무엇보다 65k 를 안넘길수 있으면 좋겟지만.. 그게 안된다 최소한으로 줄여보자 라이브러리 종류를 쓸것만..
필요한것만 쓰자 이런식으로 !!
//compile 'com.google.android.gms:play-services:8.1.0' //이넘을 다쓸 필요가 없어
compile 'com.google.android.gms:play-services-gcm:8.1.0'
compile 'com.google.android.gms:play-services-maps:8.1.0'
끝~
반응형