我正在尝试在 vs 代码上运行一个 react native docker 容器。我能够运行我的代码。但是,容器无法检测到在我的主机上运行的 android 模拟器。
I followed along in this tutorial course:
https://code.visualstudio.com/docs/remote/containers & https://github.com/microsoft/vscode-react-native
正在运行
npx react-native run-android 但是,我收到一条错误消息,指出我的模拟器没有运行。错误 无法安装应用程序。确保您有一个正在运行的 Android 模拟器或已连接的设备。使用 --verbose 标志运行 CLI 以获取更多详细信息。错误:命令失败:./gradlew app:installDebug -PreactNativeDevServerPort=8081
我的 devcontainer.json:-
{
"name": "React Native Android Container",
// Sets the run context to one level up instead of the .devcontainer folder.
"context": "..",
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
"dockerFile": "Dockerfile",
"runArgs": [
"--privileged", // give all capabilities to …Run Code Online (Sandbox Code Playgroud) 有没有好的esp8266模拟器软件可以用来自动化测试?是否可以让在 Arduino IDE 上编写的代码在这些模拟器上运行?