0
我創建了簡單的React Native Project。Android React Native構建失敗
步驟1. C:>反應本地初始化AwesomeProject
步驟2. C:> CD AwesomeProject
步驟3. C:>反應本地運行機器人
之後,我面臨以下錯誤。
C:\Users\Smith\AwesomeProject>react-native run-android
Scanning 575 folders for symlinks in C:\Users\Smith\AwesomeProject\node_modul
es (13ms)
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat install
Debug)...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> The SDK directory 'C:\Users\Smith\AwesomeProject\android\C:UsersSmithApp
DataLocalAndroidsdk' does not exist.
* 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: 4.774 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
謝謝!!
我在哪裏可以檢查這個。 – ieQsan
您的sdk路徑是C:\ Users \ Smith \ AwesomeProject \ android \ C:UsersSmithApp DataLocalAndroidsdk'',它不是一個有效的值 – x13945