IONIC - Platform

Asked

Viewed 38 times

0

I’m new to IONIC, I’m trying to generate project APK, but I can’t, by putting the command ionic cordova buid android load the data, and display the message:

Android Studio project detected
Failed to run "javac -version", make sure that you have a JDK installed.
You can getit from: http://oracle.com/technetwork/java/javase/downloads.
Your JAVA_HOME is invalid: C:\Program Files\Java\jre1.8.0_201

[ERROR] An error occurred while running subprocess cordova.

Is installed the JDK and there is the way of JAVA_HOME. Could you help me, please.

  • Are you using Windows as a system? Try running as an administrator if you are Windows

  • I am using Windows yes and already signed in as Administrator.

1 answer

0

In the environment variable JAVA_HOME is set the path of jdk and not jre.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.