Click here to Skip to main content
15,349,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone

I need help
when i make build for android by using cordova
get
Terminal
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Requirements check failed for JDK 1.8.x! Detected version: 11.0.11
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.


when i did
cordova requirements
I get

Requirements check results for android:
Terminal
Java JDK: not installed 
Requirements check failed for JDK 1.8.x! Detected version: 11.0.11
Check your ANDROID_SDK_ROOT / JAVA_HOME / PATH environment variables.
Android SDK: installed true
Android target: not installed 
Command failed with ENOENT: android list target
spawn android ENOENT
Gradle: installed /usr/local/Cellar/gradle/7.1/bin/gradle

Requirements check results for ios:
Apple macOS: installed darwin
Xcode: installed 12.5
ios-deploy: installed 1.11.4
CocoaPods: not installed 
Error: pod: Command failed with exit code 1 Error output:
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:439:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)


the variables
Terminal
export ANDROID_HOME="/Volumes/prodigy-sys/Desktop/AndroidSDK/AndroidSdkMacosx"
export ANDROID_SDK_ROOT="/Volumes/prodigy-sys/Desktop/AndroidSDK/AndroidSdkMacosx"
export PATH=$PATH:/Users/username/Desktop/Ammar_Mac/AndroidSDK/AndroidSdkMacosx/platform-tools
export PATH=$PATH:/Users/username/Desktop/Ammar_Mac/AndroidSDK/AndroidSdkMacosx/tools/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_291.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar




Can any one help me

What I have tried:

I tried searching in google and do every thing but not working
Posted
Updated 22-Mar-22 20:46pm

1 solution

cordova platform remove android
cordova platform add android
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900