我不确定我是否正确行事。我已经去了React Native网站,现在看起来他们试图强迫你使用我不想在此时使用的Expo。我无法找到有关运行Android模拟器的任何信息。我安装了Android Studio,然后启动模拟器,运行react-native run-android,我收到以下错误。
有人能指出我正确的方向,以便我可以测试我的Android代码吗?
答案 0 :(得分:2)
The work around for this was to use a different version of the mobile emulator. I was trying to use Nexus. I deleted the Nexus and installed a Galaxy and everything worked. The discussion regarding this issue can be read in the included link:
答案 1 :(得分:-1)
React Native不会强迫您使用Expo。您是否按照Android Setup的说明进行了操作?
同样Genymotion设置比Google模拟器更容易。