Ionic BUiD Android Under this project is not an Android project issue

Source: Internet
Author: User

Today, when compiling the Ionic project, I reported the following error, which is very confusing, it has always been good

First to check, the relevant Javahome environment variables, OK, java-version command no problem.

After consulting the online solution, most of the ideas are to add or remove the relevant development platform, follow this idea to try it, really effective

Specific steps:

1. CD Yourprojectfolder

2.ionic Platform RM android.

At this time will be the platforms/android directory of all the files are deleted, but only to do this is not enough, we also need to manually delete platforms This folder, this is the key point of the problem, I also suddenly thought, just try, it is feasible.

3.ionic Platform Add Android

Instead of reminding you that the platform already exists, you are really going to add the platform. Maybe the order is based on the existence of the document.

4.ionic Build Android

Wait for the result to execute, compile smoothly

Ionic BUiD Android Under this project is not an Android project issue

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.