简体   繁体   中英

cordova build android in windows 10 shows the following issue

Checking Java JDK and Android SDK versions

ANDROID_SDK_ROOT=C:\\Users\\MI\\AppData\\Local\\Android\\Sdk (recommended setting)

ANDROID_HOME=undefined (DEPRECATED)

Using Android SDK: C:\\Users\\MI\\AppData\\Local\\Android\\Sdk

Requirements check failed for JDK 8 ('1.8.*')! Detected version: null

Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.

You can open " .../platforms/android " using Android Studio and build the APK from there. I use your command just to build Javascript files, then I switch to Android Studio to launch Debugging or to produce final APK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM