简体   繁体   中英

ionic run android issue

I occured this issue when running ionic run android cmd 在此处输入图片说明

Any help ?

Do you have Android SDK? If not, download and install it. 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)

If you already have SDK, go to YourDrive:\\Path where you installed\\Android\\sdk and open SDK Manager

You'll see bunch of Android versions, select android 6.0 (API 23), and download/install through SDK manager. It's not bad to install all versions from let's say API 15 to latest.

When building you will need to have Java path set up.

Refer here if you get something like Java Home not found Error in setting JAVA_HOME

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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