[英]React Native Error when running React-Native run-android
I get this strange error in VScode when I try to execute the command React-native run-android in the terminal.当我尝试在终端中执行命令 React-native run-android 时,我在 VScode 中遇到了这个奇怪的错误。
Also ran react-native doctor and all green checkmarks for Node,yarn, android_home, and android sdk 0 errors还运行 react-native doctor 和 Node、yarn、android_home 的所有绿色复选标记和 android sdk 0 错误
Not sure how to fix these issues as I have tried all suggestions in previous threads.不确定如何解决这些问题,因为我已经尝试了之前线程中的所有建议。 Anyone have this issue that could assist?
有人有这个问题可以提供帮助吗? This is a windows machine.
这是一台windows机器。
1.first Gradle needed to connect to the inte.net. 1.首先需要Gradle连接到inte.net。
2.cd android 2.CD android
./gradlew clean ./gradlew干净
./gradlew wrapper ./gradlew 包装器
./gradlew -v // to download the new version ./gradlew -v // 下载新版本
3.project app-level build.gradle file: 3.项目应用级build.gradle文件:
update version this更新版本这个
com.google.firebase:firebase-analytics com.google.firebase:firebase 分析
and this和这个
com.google.gms:google-services com.google.gms:谷歌服务
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.