android - 带电容器的离子和 Android 未在 IntelliJ 中运行模拟器
问题描述
我跑了 npx doctor 和 npx cap sync
Capacitor Doctor
Latest Dependencies:
@capacitor/cli: 2.2.1
@capacitor/core: 2.2.1
@capacitor/android: 2.2.1
@capacitor/electron: 2.2.1
@capacitor/ios: 2.2.1
Installed Dependencies:
@capacitor/cli 2.2.1
@capacitor/core 2.2.1
@capacitor/android 2.2.1
@capacitor/ios 2.2.1
@capacitor/electron not installed
[success] Android looking great!
Found 0 Capacitor plugins for ios:
[success] iOS looking great!
~/projects/private/growbox: ()$ npx cap open android
[info] Opening Android project at /Users//projects/private/growbox/android
~/projects/private/growbox: ()$ npx cap sync
✔ Copying web assets from mobile to android/app/src/main/assets/public in 5.45s
✔ Copying native bridge in 10.89ms
✔ Copying capacitor.config.json in 8.76ms
✔ copy in 5.50s
✔ Updating Android plugins in 15.83ms
Found 0 Capacitor plugins for android:
✔ update android in 86.12ms
✔ Copying web assets from mobile to ios/App/public in 5.37s
✔ Copying native bridge in 3.78ms
✔ Copying capacitor.config.json in 4.42ms
✔ copy in 5.41s
✔ Updating iOS plugins in 15.84ms
Found 0 Capacitor plugins for ios:
✔ Updating iOS native dependencies with "pod install" (may take several minutes) in 26.92s
✔ update ios in 26.98s
✔ copy in 1.30ms
✔ update web in 5.00μp
Sync finished in 38.021s
这就是我得到的,然后我跑了:npx cap open android
Got: [info] Opening Android project at /Users//projects/private/growbox/android
而且什么也没发生。我已经运行了模拟器并且所有东西都正确安装了,我正在使用最新的 IntelliJ Ultimate
解决方案
Capacitor open 命令尝试打开 Android Studio,如果您使用 IntelliJ,则必须手动打开它。
有打开不同 IDE 的功能请求https://github.com/ionic-team/capacitor/issues/3242
推荐阅读
- python - 通过 Selenium Python Chrome 实现自动化
- grafana - 在 Grafana Datasource 插件中使用 testDatasource 函数
- java - 如何在java中跟踪基本递归代码
- apache-spark - PythonException:从 UDF 引发异常:'ValueError:如何在 Databricks 中修复此错误?
- python-3.x - Godot文件可以在Python3.7.6中实现吗
- r - 如何将依赖于索引的循环转换为 apply() 以提高 R 中的速度?
- php - 我想列出 CEP API 的数据
- python - 随机交换两列熊猫数据框的元素
- r - 按数据比较数据框中的两列
- api - Delphi DataSnap TDSServiceException