Cordova: Android Sdk Not Found. Make Sure That It Is Installed. If It Is Not at The Default Location, Set The Android_Home Environment Variable

Cordova - Android SDK not found

I found a workaround to fix the error:

https://github.com/apache/cordova-android/pull/367#issuecomment-286166329

Reason of the error:
The latest Android SDK Tools (25.3.1) turfed the android command, which all of cordova's underlying functionality relied on.

cordova: Android SDK: not installed

I figured it out.

Seems that in my case, Java JDK 9 was causing the problem. Downgrading to JDK 8 gave me the solution.

In addition, I hadn't set the ANDROID_HOME variable correctly but even when I did, it did not work until downgrading to JDK 8.



Related Topics



Leave a reply



Submit