A
A
Ann20162017-03-20 23:20:57
Angular
Ann2016, 2017-03-20 23:20:57

How to set up an environment for creating apk through ionic?

Good evening, I just can’t set up the environment for creating an apk file, I built my application on ionic, but I just can’t build it.
I can't get into java_home
ANDROID_HOME=/opt/android-sdk
JAVA_HOME=/opt/jdk/jdk1.8.0_71/bin/java
Subproject Path: CordovaLib
ERROR: JAVA_HOME is set to an invalid directory: /opt/jdk/jdk1. 8.0_71/bin/java
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Error: /home/oleg/js/mob/sms/platforms/android/gradlew: Command failed with exit code 1
update-alternatives --config java
Selection Path Priority Status
-------------------------------------------------- ----------
0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 auto mode
* 1 /opt/jdk/jdk1.8.0_71/bin/java 1 manual mode
2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 manual mode

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Finsh, 2017-03-21
@Ann2016

JAVA_HOME=/opt/jdk/jdk1.8.0_71

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question