2017-03-08 19 views
2

を構築することはできません、ちょうど反応し、ネイティブで私のつま先を浸漬始めました。この問題を解決するにはリアクトネイティブ:私は初心者ですアンドロイドアプリ

:app:transformClassesWithDexForDebug FAILED 

FAILURE: Build failed with an exception. 

*What went wrong: 
Execution failed for task ':app:transformClassesWithDexForDebug'. 
> com.android.build.api.transform.TransformException: java.lang.RuntimeException:java.lang.RuntimeException:com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

Total time: 14.034 secs 
Could not install the app on the device, read the error above for details. 
Make sure you have an Android emulator running or a device connected and have set up your Android development environment: 
https://facebook.github.io/react-native/docs/android-setup.html 

答えて

1

あなたのアプリは今multidexあるように見え、あなたが学ぶことができるMORについてhere

:私は、私はこのエラーを取得しています秒1を始めた最初のハローワールドアプリは、大丈夫実行しませんでしたbuild.gradleで多次元化を有効にしてください:

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

     // Enabling multidex support. 
     multiDexEnabled true 
    } 
+0

これで解決できませんでした。 :( –