0
私は単純なReactネイティブプロジェクトを作成します。Android React Native build fail
ステップ1. C:>反応するネイティブのinit 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