[Resolved] Cordova requirements "Android SDK not found." on Ubuntu 16.04. based OS.
I’m not sure where I would post this. But after searching for hours to solve the problem I’m keen to shorten the search for others.
I followed the steps to get the Cordova wrapper (http://quasar-framework.org/guide/cordova-wrapper.html) set up, installed Android Studio and set the paths. Still I got “Android SDK not found.” when running “cordova requirements” (with the correct defined paths):
$ cordova requirements Requirements check results for android: Java JDK: installed 1.8.0 Android SDK: installed true Android target: not installed Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. Gradle: not installed Could not find gradle wrapper within Android SDK. Might need to update your Android SDK. Looked here: /home/peter/Android/Sdk/tools/templates/gradle/wrapper Error: Some of requirements check failed
At the end replacing the tools as described here: https://github.com/meteor/meteor/issues/8464#issuecomment-288112504 solved the issue for me:
$ cordova requirements Requirements check results for android: Java JDK: installed 1.8.0 Android SDK: installed true Android target: installed android-14,android-15,android-16,android-17,android-18,android-19,android-20,android-21,android-23,android-24,android-25 Gradle: installed
I hope posting this helps others to get started easier. Razvan, feel free to move or delete if undesired.
@peter Hi Peter, thanks for sharing. Would you care for a documentation PR to add your findings on this specific case?
Sure, I’ll add a troubleshooting section to the Cordova section in the docs.
I had the same issue, and followed this article