I can't export the Android app, I have a JDK error. This is the error log:
Buildfile: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at C:\Android SDK
-setup:
[echo] Project Name: RuntimeAndroid
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 26.0.0
[echo] Resolving Build Target for RuntimeAndroid...
[gettarget] Project Target: Android 5.0.1
[gettarget] API level: 21
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\bin
[mkdir] Created dir: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\bin\res
[mkdir] Created dir: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\bin\rsObj
[mkdir] Created dir: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\bin\rsLibs
[mkdir] Created dir: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\gen
[mkdir] Created dir: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\bin\classes
[mkdir] Created dir: C:\Users\Pisti\AppData\Local\Temp\And6119.tmp\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for RuntimeAndroid...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
BUILD FAILED
C:\Android SDK\tools\ant\build.xml:716: The following error occurred while executing this line:
C:\Android SDK\tools\ant\build.xml:730: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files (x86)\Java\jre1.8.0_131"
Total time: 1 second
How to fix this? (sorry for my english)