본문 바로가기
Programming/Android

Unable to build apk: The number of method references cannot exceed 64K

by guru_k 2016. 9. 16.
728x90
반응형

build.gradle 파일 내 defaultConfig 에 multiDexEnabled true 를 입력하면 해결


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.3"
 
    defaultConfig {
        applicationId "com.gkwak.***"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        multiDexEnabled true // 이곳에 추가
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
cs


참고 : https://developer.android.com/studio/build/multidex.html


728x90
반응형

댓글