갑자기 나는 더 이상 반응이없는 네이티브 앱을 만들 수 없습니다.네이티브 : app : transformClassesWithDexForDebug FAILED
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzmu;
내 android/build.gradle
:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
및 종속성 섹션 android/app/build.gradle
에서가 :
dependencies {
compile project(':react-native-keychain')
compile project(':react-native-fbsdk')
compile project(':react-native-randombytes')
compile project(':react-native-barcodescanner')
compile project(':react-native-camera')
compile project(':rn-splash-screen')
compile project(':react-native-code-push')
compile project(':react-native-vector-icons')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile(project(":react-native-google-signin")){
exclude group: "com.google.android.gms"
}
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.android.gms:play-services-auth:9.4.0'
compile project(':react-native-vector-icons')
compile project(':react-native-code-push')
compile project(':react-native-onesignal')
}
나는 그것이 발생하는 것을 들어 본 질문 제목에 언급 된 작업은 다음과 같은 메시지와 함께 실패 갈등으로 인해 (예 : Google Play 서비스가 두 번 선언되거나 한 곳에서 전체적으로 다른 곳에서 특정 서비스로 선언 된 경우) 문제가 무엇인지 알아 내라. 무엇이 잘못되었으며 어떻게 해결할 수 있습니까?
혹시 그것을 해결 않았다. 나는 같은 문제를 가지고있다. – Chad