将Android添加到Ionic 2项目

时间:2018-03-15 16:46:05

标签: cordova ionic-framework ionic2 ionic3

我见过类似的问题,但无法解决我的问题。

我有一个Ionic 3项目,想要添加Android。

ionic cordova platform add android

几分钟后它会问我:

Platform android not detected. Would you like to install it?

我用YES回答。

过了一会儿,它会告诉我:

[ERROR] No platforms detected. Please run: ionic cordova platform add

所以这是鸡蛋问题。

任何想法该怎么做?

以下是完整的控制台输出:

ionic cordova platform add android
> cordova platform add android --save
✔ Running command - done!
> ionic cordova resources android --force
✔ Collecting resource configuration and source images - done!

? Platform android not detected. Would you like to install it? Yes
> cordova platform add android --save
✔ Running command - done!
[ERROR] No platforms detected. Please run: ionic cordova platform add

0 个答案:

没有答案