gpt4 book ai didi

android - 带电容器的 Ionic 和 Android 不在 IntelliJ 中运行模拟器

转载 作者:行者123 更新时间:2023-12-04 14:12:54 26 4
gpt4 key购买 nike

我运行了 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

关于android - 带电容器的 Ionic 和 Android 不在 IntelliJ 中运行模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62933844/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com