1

我是 React-Native 的初学者。我有适用于 Android 的 Visual Studio 模拟器。有人可以告诉我如何在其中运行 React Native 应用程序吗?我将 Visual Studio 模拟器添加为外部工具。我跟着(https://blogs.msdn.microsoft.com/devops/2015/07/20/using-the-visual-studio-emulator-for-android-from-android-studio-or-eclipse-with-adt / ) 链接以添加带有 Android Studio 的 Visual Studio 模拟器。

1.我尝试使用“react-native run-android”构建项目,但以一些构建错误结束。“任务执行失败:'app:processGoogle services' 未找到匹配的客户端”

  1. 我尝试了“Gradlew build”,这给了我同样的错误

  2. 我使用 cd android && ./gradlew clean 清除了缓存

  3. 我试过“gradlew cleanBuildCache”但没有用

难道我做错了什么?或者我如何在适用于 Android 的 Visual Studio 模拟器中运行 React 本机应用程序。谢谢

4

0 回答 0