Can not Apk build folder help me?

Can not Apk build folder help me?
The codes I use are

npm install -g cordova
npm install -g ionic
ionic start myproject blank
cd resistance
ionic cordova platform add android
ionic cordova build --release android

Error code

[ERROR] An error occurred while running cordova build android --release (exit code 1).

Help me pls?

What is your ionic info output?
What is the rest of the error message? You only posted a super small part of the command output.

ionic info

cli packages: (C:\Users\db\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.0
ionic (Ionic CLI) : 3.19.0

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.1.4
Cordova Platforms  : android 6.3.0
Ionic Framework    : ionic-angular 3.9.2

System:

Node : v8.9.1
npm  : 5.5.1
OS   : Windows 7

Environment Variables:

ANDROID_HOME : not set

Misc:

build error

C:\Users\db\resistance>ionic cordova build --release android
Running app-scripts build: --platform android --target cordova
[18:14:47] build dev started …
[18:14:48] clean started …
[18:14:49] clean finished in 762 ms
[18:14:49] copy started …
[18:14:49] deeplinks started …
[18:14:49] deeplinks finished in 40 ms
[18:14:49] transpile started …
[18:15:58] transpile finished in 68.79 s
[18:15:58] preprocess started …
[18:15:58] preprocess finished in 2 ms
[18:15:58] webpack started …
[18:16:04] copy finished in 75.53 s
[18:16:24] webpack finished in 25.96 s
[18:16:24] sass started …
[18:16:40] sass finished in 15.99 s
[18:16:40] postprocess started …
[18:16:40] postprocess finished in 98 ms
[18:16:40] lint started …
[18:16:40] build dev finished in 113.05 s

cordova build android --release
[18:17:39] lint finished in 58.74 s
Error: Failed to run “javac -version”, make sure that you have a JDK installed.
You can get it from: http://www.oracle.com/technetwork/java/javase/downloads.

[ERROR] An error occurred while running cordova build android --release (exit code 1).

Error message is quite clear what the problem is.

What does ionic cordova requirements return?

Also: 6.4.0 is available and can be manually installed.

Running app-scripts build: --platform android --target cordova
[18:33:25] build dev started …
[18:33:25] clean started …
[18:33:25] clean finished in 5 ms
[18:33:25] copy started …
[18:33:26] deeplinks started …
[18:33:26] deeplinks finished in 90 ms
[18:33:26] transpile started …
[18:33:44] transpile finished in 18.17 s
[18:33:44] preprocess started …
[18:33:44] preprocess finished in 1 ms
[18:33:44] webpack started …
[18:33:46] copy finished in 20.47 s
[18:34:03] webpack finished in 18.88 s
[18:34:03] sass started …
[18:34:07] sass finished in 3.93 s
[18:34:07] postprocess started …
[18:34:07] postprocess finished in 9 ms
[18:34:07] lint started …
[18:34:07] build dev finished in 41.59 s

cordova build android --release
[18:34:12] lint finished in 5.20 s
ANDROID_HOME=C:\Users\db\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files\java\jdk-9.0.1
Error: Requirements check failed for JDK 1.8 or greater
[ERROR] An error occurred while running cordova build android --release (exit code 1).

C:\Users\db\resistance>Error: Failed to run “javac -version”, make sure that you have a JDK installed.^V^VError: Failed to run “javac -version”, make
sure that you have a JDK installed.

I get this error

That is 1) the same you already posted and 2) the command it tells you is failing. Not surprising it fails…

I installed java jdk but I do not understand what is the problem? Can someone please help?