티스토리 뷰

728x90
반응형

Execution failed for task ':app:mergeDexDebug'.

 

react native 에서 안드로이드 앱 디버깅 시 위의 메시지가 출력되며 빌드가 되지 않는다면,

 

android\app\build.gradle 파일에서 

 

buildscript {
    ext {
        buildToolsVersion = "30.0.2"
        minSdkVersion = 21
        compileSdkVersion = 30
        targetSdkVersion = 30
        ndkVersion = "21.4.7075529"
        
    }
    defaultConfig {
        multiDexEnabled true
    }
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:4.2.2")
        implementation('com.android.support:multidex:1.0.3')
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

defaultConfig {
        multiDexEnabled true
    }

implementation 'com.android.support:multidex:1.0.3' 코드를 넣어준 후에

빌드하면 해결된다.

728x90
반응형
반응형
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함