[英]SDK error in React native
i am new to react native and an trying to run the project on emmulator "react-native run-android" . 我是新来的响应本机的人,并试图在仿真器“ react-native run-android”上运行该项目。 iam getting the error.
我收到错误。
* 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
My Sdk Folder is in 我的SDK文件夹在
sdk.dir ="D:/Android/sdk"
I set it up in local.properties. 我在local.properties中设置了它。
Can someone help me to fix this tnx. 有人可以帮我解决这个问题。
You are getting this error because you haven't connected a device or opened the emulator. 由于未连接设备或未打开仿真器,因此出现此错误。 So first connect the device to the machine and try
react-native run-android
or run the emulator and enter react-native run-android
因此,首先将设备连接至计算机,然后尝试
react-native run-android
或运行模拟器,然后输入react-native run-android
If you are working on windows system then path should be: 如果您在Windows系统上工作,则路径应为:
sdk.dir=D\:\\Projects\\Android\\sdk
Clear build cache and npm cache then try to make build. 清除构建缓存和npm缓存,然后尝试进行构建。
Also check, your device is connected or not. 还要检查您的设备是否已连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.