Loïc Evans
Loïc Evans

Reputation: 11

Can't run ionic cordova platform android

Hi everyone I am new on ionic v3 and I want to generate a new .apk. When I enter the command ionic cordova platform android I have this message:

You have been opted out of telemetry. To change this, run: cordova telemetry on. Android Studio project detected ANDROID_HOME=C:\Users\Digit\AppData\Local\Android\sdk Requirements check failed for JDK 1.8 JAVA_HOME=C:\Program Files\Java\jdk-11.0.1 [ERROR] An error occurred while running subprocess cordova. cordova build android exited with exit code 1.

Thanks for your help.

Upvotes: 1

Views: 1314

Answers (1)

Haidar Zeineddine
Haidar Zeineddine

Reputation: 998

Your command ionic cordova platform android is not correct.

Instead, you must use ionic cordova platform add android.

Checkout ionic cordova platform

Upvotes: 4

Related Questions