简体   繁体   English

React Native中的SDK错误

[英]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.

相关问题 错误路径SDK反应本地Linux - error path sdk react native linux Google SignIn SDK 因抛出错误而失败,出现不可恢复的登录失败 - 捕获错误:React Native - Google SignIn SDK is failing by throwing error, A non-recoverable sign in failure occurred -catch error: React Native WebView (react-native-webview) 在 Expo SDK36 中获取错误代码 -1 - WebView (react-native-webview) getting error code -1 in Expo SDK36 在我的react native项目中安装Parse SDK时,它显示找不到变量:localStorage错误 - When installing the Parse SDK in my react native project then it shows Can't find variable: localStorage error 将反应本机 sdk 版本从 0.61.5 更新到 0.64.0 时,Transformer 不是构造函数错误 - Transformer is not a constructor error while updating react native sdk version from 0.61.5 to 0.64.0 从 Expo SDK 43 升级到 44 导致 While trying to resolve module `@react-navigation/native 错误 - Upgrading from Expo SDK 43 to 44 resulted in While trying to resolve module `@react-navigation/native error React Native FB SDK处理身份验证拒绝 - React Native FB SDK handle authentication reject React Native SDK的使用方法返回未定义 - Using method of React Native SDK returns undefined 安装 Mixpanel SDK 的问题 - React Native - Problem to install Mixpanel SDK - React Native React Native Expo SDK 版本已过时 - React Native Expo SDK version is outdated
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM