我一直在使用VSC IDE在iPhone模拟器上编码我的项目,并且效果很好,所以我决定在Android模拟器上尝试。当我打开android studio时,我所有的JS文件都存在,因此我尝试运行它,模拟器已存在,但项目应用程序不存在,捆绑程序未加载。
我尝试查看安装,但是仍然出现错误,并且捆绑程序拒绝加载。下面是终端上显示的错误。有人可以帮忙吗?
info Starting JS server...
info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
FAILURE: Build failed with an exception.
* What went wrong:
Could not create service of type ScriptPluginFactory using BuildScopeServices.createScriptPluginFactory().
> Could not create service of type PluginResolutionStrategyInternal using BuildScopeServices.createPluginResolutionStrategy().
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details.
Camilles-MBP:project camillebasbous$