简体   繁体   English

离子运行android问题

[英]ionic run android issue

I occured this issue when running ionic run android cmd 运行ionic run android cmd时发生此问题 在此处输入图片说明

Any help ? 有什么帮助吗?

Do you have Android SDK? 您有Android SDK吗? If not, download and install it. 如果不是,请下载并安装它。 https://developer.android.com/studio/index.html#downloads https://developer.android.com/studio/index.html#downloads

Just install it with Android Studio, later you can delete Studio and just leave the SDK (or you can go and find just the SDK but this is easier) 只需在Android Studio上安装它,以后就可以删除Studio并离开SDK(或者您可以仅查找SDK,但这更容易)

If you already have SDK, go to YourDrive:\\Path where you installed\\Android\\sdk and open SDK Manager 如果您已经有了SDK,请转至YourDrive:\\安装路径\\ Android \\ sdk,然后打开SDK Manager

You'll see bunch of Android versions, select android 6.0 (API 23), and download/install through SDK manager. 您会看到许多Android版本,选择android 6.0(API 23),然后通过SDK管理器下载/安装。 It's not bad to install all versions from let's say API 15 to latest. 可以安装从API 15到最新版本的所有版本。

When building you will need to have Java path set up. 构建时,您将需要设置Java路径。

Refer here if you get something like Java Home not found Error in setting JAVA_HOME 这里指的,如果你得到的东西像Java首页没有发现在设置JAVA_HOME错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM