ANDROID SDK ROOT undefined recommended setting while building ionic app using Cordova for Android device

0 votes

I'm attempting to use Cordova and the command from VSCode below to create an ionic app for an Android smartphone.

ionic cordova build android --prod --release

But I'm getting this error:

cordova.cmd build android --release
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\tanmay\AppData\Local\Android\sdk (DEPRECATED)
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio
[ERROR] An error occurred while running subprocess cordova.

        cordova.cmd build android --release exited with exit code 1.

JDK and Android Studio are both already installed. I also put the appropriate SDK path in the environment variable ANDROID SDK ROOT. But no luck thus far.

I'm running Windows 10 and Android Studio 3.6.1, Gradle 6.3, and Cordova 8.1.

I suppose I'm missing the ANDROID SDK ROOT setting someplace, but I'm not sure where.

Sep 21 in Android by Edureka
• 11,040 points
66 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Android

0 votes
0 answers

Android Open External Storage directory(sdcard) for storing file

For programmatic file saving, I want to ...READ MORE

Sep 21 in Android by Edureka
• 11,040 points
11 views
0 votes
0 answers

"unable to locate adb" using Android Studio

I've been attempting to test my software ...READ MORE

Sep 21 in Android by Edureka
• 11,040 points
15 views
0 votes
0 answers

Android Studio: Where is the Compiler Error Output Window?

When I "Run" my project in Android ...READ MORE

Sep 21 in Android by Edureka
• 11,040 points
11 views
0 votes
0 answers

Error - Android resource linking failed (AAPT2 27.0.3 Daemon #0)

I have this error I am try reinstall ...READ MORE

Sep 21 in Android by Edureka
• 11,040 points
34 views
0 votes
0 answers
0 votes
1 answer

Unable to communicate to device with .local domain using android, corova-zeroconf-plugin

Use IP address instead of http://iotdevice.local..Use htt ...READ MORE

answered Aug 2, 2018 in IoT (Internet of Things) by anonymous2
• 4,280 points
1,116 views
0 votes
0 answers
0 votes
0 answers
0 votes
0 answers

Switch php versions on commandline ubuntu 16.04

On my Ubuntu 16.04, I've installed PHP ...READ MORE

Jul 30 in PHP by Kithuzzz
• 12,240 points
32 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP