dev/aos

[AOS] Execution failed for task ':app:mergeExtDexDebug'.

캄춰 2024. 1. 13. 19:11
728x90
반응형

참조하는 라이브러리의 개수가 65536개 메서드를 초과하면 발생하는 에러이다.

 

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingTaskDelegate
   > There was a failure while executing work items
      > A failure occurred while executing com.android.build.gradle.internal.tasks.DexMergingWorkAction
         > com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
           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

 

https://developer.android.com/build/multidex?hl=ko

 

메서드가 64K개를 초과하는 앱에 관해 멀티덱스 사용 설정  |  Android 스튜디오  |  Android Developers

앱이 여러 DEX 파일을 빌드하고 읽을 수 있도록 하는 멀티덱스 앱 구성의 사용 방법에 관해 알아보세요.

developer.android.com

 

android 앱 단위 build.gradle 열기

    defaultConfig {
        multiDexEnabled true
    }

 

728x90
반응형

'dev > aos' 카테고리의 다른 글

[AOS] classic Bluetooth analy  (0) 2024.02.15
[AOS] Android Studio Alt + F12 not work  (0) 2024.01.13
[AOS] Gradle Plugin, Version location  (0) 2024.01.12
[AOS] Retrofit API 통신 기본 사용 방법  (0) 2024.01.10
[AOS] BuildType, Variant 빌드  (0) 2024.01.04