2017-03-08 2 views
2

Ich bin ein Neuling, fing gerade an, meinen Zeh in reaktionseigenem einzutauchen. Die erste Hallo Welt app habe in Ordnung laufen, wie ich die zweite begann ich diese Störung erhalte:React-native: Kann die Android-App nicht erstellen

: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 

Antwort

1

Es sieht aus wie Ihre App jetzt multidex ist, können Sie lernen mor über here

Um dies zu lösen Aktivieren Sie einfach multidexing on build.gradle:

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

     // Enabling multidex support. 
     multiDexEnabled true 
    } 
+0

Das hat es nicht gelöst. :( –

Verwandte Themen