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