?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
# 에러 내용
The number of method references in a .dex file cannot exceed 64K
Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html


# 에러 원인
프로젝트에 사용되는 메소드의 개수가 64K 이상이 되었을때 발생하는 에러이다.
안드로이드 개발자 사이트에서 해결책을 제공하고 있다.
solution https://developer.android.com/studio/build/multidex.html


# 해결 방법

1. build.gradle 아래와 같이 수정하여 빌드 한다.
android {
    compileSdkVersion 21
    buildToolsVersion "21.1.0"

    defaultConfig {
        ...
        minSdkVersion 14
        targetSdkVersion 21
        ...

        // Enabling multidex support.
        multiDexEnabled true
    }
    ...
}

dependencies {
    compile 'com.android.support:multidex:1.0.0'
}

2. Application을 확장하여 사용하는 경우는,
Application을 MultiDexApplication으로 확장하여 아래와 같이 추가 하도록 한다.
public class GlobalApplication extends MultiDexApplication {
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }
}


?

  1. DDay Memo 1.9.4 소스코드

    Date2015.10.03 CategoryDevelop Byhooni Views0
    Read More
  2. [ios] How to set up clang formatter

    Date2015.09.17 CategoryDevelop Byhooni Views1355
    Read More
  3. [ios] SBCampanion App 초안

    Date2015.09.16 CategoryDevelop Byhooni Views651
    Read More
  4. [mysql] CPU 점유율이 높을 때 확인할 내용

    Date2015.08.26 CategoryDatabase Byhooni Views6643
    Read More
  5. [git] 쉬운 버전관리 Git 설명

    Date2015.08.18 CategoryDevelop Byhooni Views870
    Read More
  6. [ios] 오브젝티브C→스위프트, 코드 변환 손쉽게

    Date2015.08.07 CategoryDevelop Byhooni Views955
    Read More
  7. [ios] Objective-C Types & Storage Capacity

    Date2015.07.22 CategoryDevelop Byhooni Views1151
    Read More
  8. [ppt] Macro for board game 발표자료 (@Team Study 2013.01.18)

    Date2015.07.22 CategoryPPT Byhooni Views1266
    Read More
  9. [ppt] Information Security 발표 자료 (@Team Study 2012.11.15)

    Date2015.07.22 CategoryPPT Byhooni Views876
    Read More
  10. [ppt] Equation Solving 발표 자료 (@AjaxUI랩 밋업데이 2012.02.28)

    Date2015.07.22 CategoryPPT Byhooni Views904
    Read More
  11. [ios] AES256 알고리즘을 이용해 데이터 암호화/복호화 방법

    Date2015.07.21 CategoryDevelop Byhooni Views4099
    Read More
  12. 맥 OS X 에서 스크린 화면 캡쳐 단축키 (Mac Print Screen)

    Date2015.07.21 CategorySystem/OS Byhooni Views1898
    Read More
  13. [ios] NSData to NSString (NSString to NSData)

    Date2015.07.21 CategoryDevelop Byhooni Views632
    Read More
  14. [ios] WWDC 2015 샘플 소스 코드 통합파일

    Date2015.07.20 CategoryDevelop Byhooni Views657
    Read More
  15. [android] N-Puzzle 게임

    Date2015.07.09 CategoryDevelop Byhooni Views863
    Read More
  16. [windows] 윈도우 사용자 계정 로그인 암호 분실, 암호 변경하는 방법

    Date2015.07.09 CategorySystem/OS Byhooni Views21355
    Read More
Board Pagination Prev 1 ... 10 11 12 13 14 ... 74 Next
/ 74