R
R
Roman Rakzin2021-06-05 20:04:07
Android
Roman Rakzin, 2021-06-05 20:04:07

Ionic does not collect apk file to upload to Google Play. What could be the reason?

I started to learn ionic and I can't upload the project to Google Play. I've added environment variables, but I still get errors when I try to build the project. What could be the matter if I do everything as they write on the forums, installed Java, added all the environment variables, but still something is wrong. I do as described here https://ionicframework.com/docs/deployment/play-store

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=C:\Users\Roman\AppData\Local\Android\Sdk (recommended setting)
ANDROID_HOME=C:\Users\Roman\AppData\Local\Android\Sdk (DEPRECATED)
Requirements check failed for JDK 1.8.x! Detected version: 16.0.1
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
[ERROR] An error occurred while running subprocess cordova.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
illuzor, 2021-06-05
@iLLuzor

Requires jdk 8 and installed 16

S
Sergio, 2021-06-06
@sergiodev

You need to install Java JDK 8 and set the path to the bin folder from the JDK 8 installation directory (usually something like C:\Program Files\Java\jdk1.8.xxx\bin) in the PATH environment variable. You are currently using Java 16.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question