我正在尝试将react原生连接到仿真器,因为我无法成功启动它,所以我运行 npx @react-native-community/cli doctor 但它给了我这样的警告 ✖ Android SDK - Required for building and installing your app on Android
- Versions found: 29.0.2, 31.0.0
- Version supported: Not Found 这些都是我尝试过的东西 ? ? ?
在为android构建一个react本机项目时,运行以下命令
react-native run-android --variant=release
然而,要成功构建版本,就需要运行android仿真器。如果不是,您将得到以下错误:
* What went wrong:
Execution failed for task ':app:installRelease'.
> com.android.builder.testing.api.DeviceException: No connected devices!
但是我不想启动模拟器,因为我正在一个不支持android仿真器的
我试着在我的mac上运行genymotion仿真器上的本机应用程序react。当我写react-native run-android的时候
Running /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081
error: closed
Could not run adb reverse: Command failed: /usr/local/opt/android-sdk/platform-tools/adb reverse tcp:8081 tcp:8081
Building and installi
可以在两个不同的android模拟器中同时运行两个不同的本机项目吗?我是说为了测试的目的。如果可能的话,怎么做?
我试着用不同的仿真器和不同的城域端口运行,但是第二个应用程序的构建非常慢,在构建过程中会产生很多错误,然后完成构建。当第二个应用程序在第二个模拟器上启动时,这个错误出现在模拟器屏幕上:
typeeror: null is not an object (evaluating'_ReanimatedModule.default.createNode'), stack:
__nativeInitialize@453633:35
__attach@453569:31
Ani
我有我的"Helloworld“应用程序的模板代码,它是用javascript和编写的。我连接了我的android仿真器,想在上面启动这个应用程序。当我运行“react本机运行-android”命令时,会发生以下情况。Node.js作为一个单独的窗口打开,它被写成“加载依赖关系图,完成”。但是,在终端窗口中有以下错误消息:
>User helloworld $ react-native run-android
Starting JS server...
Building and installing the app on the device (cd android &a