How can I use Cordova without installing Android Studio? Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of How can I use Cordova without installing Android Studio? without wasting too much if your time.

The question is published on by Tutorial Guruji team.

I use an old computer for development, and my current specs doesn’t meet Android Studio’s System requirements. I am a newbie, and only know some JS/HTML5. And I’m trying to enable oAuth for Firebase Auth services for Android.

I downloaded the Commandline Tools from https://developer.android.com/studio/ (far at the bottom of the page) and tried to use sdkmanager.bat, but I can’t make it accept commands. I added its Path to the Environment variable “path”, and then tried using Windows PowerShell. But writing any command will just make it start over again. (maybe it was something foolish of me)

Then I downloaded and installed Gradle. After that when I write cordova requirements I get the following result:

Requirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: not installed
No android targets (SDKs) installed!
Gradle: installed C:UsersSparshaDesktopgradle-6.5-allgradle-6.5bingradle
Some of requirements check failed

I am not sure how Android SDK installed became true, but Android target is not installed (Don’t know how to install).

Also, using cordova build gives me the following results:

Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:UsersSparshaDesktopcommandlinetools-win-6514223_latest (DEPRECATED)
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

FAILURE: Build failed with an exception.

* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.5/userguide/gradle_daemon.html
Process command line: C:Program FilesJavajdk1.8.0_251binjava.exe -Xmx2048m -Dfile.encoding=windows-1252 -Duser.country=IN -Duser.
language=en -Duser.variant -cp C:UsersSparshaDesktopgradle-6.5-allgradle-6.5libgradle-launcher-6.5.jar org.gradle.launcher.daem
on.bootstrap.GradleDaemon 6.5
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get
full insights.

* Get more help at https://help.gradle.org
C:UsersSparshaDesktopgradle-6.5-allgradle-6.5bingradle: Command failed with exit code 1

Thanks…

Answer

Whatever you downloaded from that URL is not needed. That is probably the SDK for Android Studio.

To setup your Cordova tools to develop Cordova apps with either Visual Studio or your favorite text editor like Notepad++, follow this detailed guide which I created earlier.

Let me know if you have any questions.

We are here to answer your question about How can I use Cordova without installing Android Studio? - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji