Ich habe gerade React Native und Android Studio installiert. Ich eine auf Ubuntu 14.04 LTS und ich versucheFehler beim Suchen der Build Tools-Version 24.0.1 mit reaktivem nativen
react-native run-android
Aber ich habe einen Fehler wie dieser
Starting JS server...
Running /home/marta/Android/Sdk/platform-tools/adb reverse tcp:8081 tcp:8081
error: no devices/emulators found
Could not run adb reverse: Command failed:/home/marta/Android/Sdk/platform-tools/adb reverse tcp:8081 tcp:8081
Building and installing the app on the device (cd android && ./gradlew installDebug...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> failed to find Build Tools revision 24.0.1
* 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: 6.992 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
zu laufen Ich habe auch
android list sdk -a
und ich installiert
Installing Archives:
Preparing to install archives
Downloading Android SDK Platform-tools, revision 24.0.1
Installing Android SDK Platform-tools, revision 24.0.1
Stopping ADB server succeeded.
Installed Android SDK Platform-tools, revision 24.0.199%)
Stopping ADB server succeeded.
Starting ADB server succeeded.
Done. 1 package installed.
Und so sieht meine build.gradle Datei aus wie
http://i.imgur.com/xWGnMTY.png
Haben Sie eine Ahnung, was falsch ist?
Sorry für das Posten nicht Fotos, aber anscheinend brauche ich 10 Ruf etwas.
'Fehler: keine Geräte/Emulatoren gefunden '... Führen Sie' adb devices' aus. Gibt es eine Verbindung? –
Dann unter dem ... 'Stellen Sie sicher, dass Sie einen Android-Emulator oder ein Gerät angeschlossen haben und Ihre Android-Entwicklungsumgebung eingerichtet haben:' –
Obwohl ... gemäß Ihrer build.gradle verwenden Sie '23.0.1' , damit dieser Fehler nicht wirklich Sinn macht. –