【发布时间】:2017-11-16 03:15:08
【问题描述】:
我是反应原生的新手,并试图在模拟器 "react-native run-android" 上运行项目。我得到了错误。
* What went wrong:
A problem occurred configuring project ':app'.
> The SDK directory 'D:\ReactNativeLearning\zupportdeskchat\ZDReactNative\zupportdeskapp\android\"D:\Android\sdk"' 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: 5.253 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
我的 SDK 文件夹在
sdk.dir ="D:/Android/sdk"
我在 local.properties 中设置。
谁能帮我修复这个 tnx。
【问题讨论】:
-
您是在 Windows 上运行它吗?尝试:sdk.dir = D\:\\Android\\sdk 这可能会有所帮助:stackoverflow.com/questions/32634352/…
标签: javascript android reactjs react-native