Error:The number of method references in a .dex file cannot exceed 64.


해결 사이트

https://developer.android.com/studio/build/multidex.html#mdex-gradle



build.gradle

1
2
3
4
5
6
7
8
9
10
11
12
13
14
android {
    ...
 
    defaultConfig {
        ...
        multiDexEnabled true
    }
}
 
dependencies {
    ...
    compile 'com.android.support:multidex:1.0.0'
}
 
cs

추가



AndroidManifest.xml

1
2
3
4
5
6
<application
        ...
        android:name="android.support.multidex.MultiDexApplication">
 
    ...
</application>
cs

추가

+ Recent posts