我剛剛安裝了React Native和Android Studio。我一個在Ubuntu 14.04 LTS,我試圖運行無法找到構建工具版本24.0.1與反應原生
react-native run-android
但我有這樣
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
錯誤我也查
android list sdk -a
和我裝
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.
這就是我的build.gradle文件的外觀像
http://i.imgur.com/xWGnMTY.png
你有什麼想法,有什麼不好?
對不起張貼照片,但顯然我需要10聲望的東西。
錯誤:找不到設備/模擬器...運行adb設備。有連接嗎? –
然後在下面......'確保你有一個Android模擬器運行或設備連接,並且已經設置了你的Android開發環境:' –
雖然...根據你的build.gradle,你使用'23.0.1' ,這樣錯誤就沒有意義了。 –