I am very new to Ionic Cordova applications. I am trying to build my ionic application for android platform using the following command --
ionic cordova build android
But it always fails with the following error
ERROR building one of the platforms: TypeError: Cannot read property '1' of null
You may not have the required environment or OS to build this project
Error: Cannot read property '1' of null
[ERROR] An error occurred while running cordova build android (exit code 1).
I am having the following configuration --
JDK 10.1, Cordova 6.0, Ionic 3
Your cordova version is old. The current version is 8.0.0 . You will need to update this cli package.
Secondly, cordova can only use JDK 1.8. You will have to install this version and set JAVA_HOME accordingly.
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.