마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

Android Studio Update 후 "finished with non-zero exit value 2" 발생합니다.

0 추천

저좀 살려주세요.

Android Studio Update 후 "finished with non-zero exit value 2" 에러가 발생합니다.

defaultConfig{ multiDexEnabed true }를 추가했더니 "java.lang.NoClassDefFoundError: android.support.v7.appcompat.R$attr" 가 런타임 에러로 발생하고 죽겠습니다.

 

아래는 gradle 파일인데... 아무리 봐도 이상이 없습니다.

dependencies {
    compile project(':viewPagerIndicator')
    compile project(':materialDesign')
    compile project(':mPChartLib')

    compile 'com.android.support:appcompat-v7:22.2.0'
    compile 'com.google.android.gms:play-services:+'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile 'com.android.support:palette-v7:22.2.0'
    compile 'com.android.support:recyclerview-v7:22.2.0'
    compile 'com.android.support:cardview-v7:22.2.0'
    compile 'com.squareup.retrofit:retrofit:1.9.0'
    compile 'com.squareup.okhttp:okhttp:2.4.0'
    compile 'com.squareup.okhttp:okhttp-urlconnection:2.4.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'io.reactivex:rxandroid:0.25.0'
    compile 'com.github.xiprox.errorview:library:2.2.0'
}

꼭 답변 부탁드립니다. 지난주까지 멀정히 잘 빌드 되던거였는데 이러네요.ㅜㅜ

dbMyth (160 포인트) 님이 2015년 10월 12일 질문

1개의 답변

0 추천

아래 3가지 처리를 했더니 정상 동작은 하는데....

빌드 속도가 100배는 느려진것 같습니다. 이거 해결방법 없을까요?

 

defaultConfig {
    multiDexEnabled true
}
compile 'com.android.support:multidex:1.0.0'
public class MyApp extends MultiDexApplication {
dbMyth (160 포인트) 님이 2015년 10월 12일 답변
...