• About Us
  • Contact Us
  • Privacy Policy
NSR-TECH
No Result
View All Result
  • Login
No Result
View All Result
NSR-TECH
No Result
View All Result
Home Mobile Development

Run cordova without android studio

nsr by nsr
September 12, 2020
in Mobile Development, Quasar
2
0
SHARES
226
VIEWS
Share on FacebookShare on Twitter

How to Run cordova without android studio

Hello friends, in this post i am going to show you how to run cordova android app without using android studio. Basically, some pepole dont wont to run android studio because of their PC specs. But if they need to run cordova app i will show you how to do that. Follow this post.

First of all we need some dependencies installed.

READ ALSO

Quasar Google maps with places

Cordova sign APK for production

1.Install SDK tools from official site (command line tools)

cordova without android studio 1

After downloading command line tools make sure to extract those in a cmdline-tools folder (important)

The reason to extract those in cmdline-tools named folder is sometimes it wont allow to download dependencies from sdk command line

2. Download and install JDK 8 from official site

https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

3. Download Gradle

https://gradle.org/install/

4. Download and extract Apache ant tools (Recommended to extract in C)

https://ant.apache.org/bindownload.cgi

Note – Apache ant tools really not required. But some PCs need to be installed Apache ant to proceed

Those are the dependencies we needed for this process. So now lets start the initialization of those tools.

Initialization steps

Step 1

Go to extracted SDK command lines tools folder and navigate to bin folder. Then open that folder in CMD. (You can simply type cmd in navigation bar on that folder).

Run below line in order to download and install platform tools dependency

sdkmanager “platform-tools” “platforms;android-28”

After that run below line in order to download and install build tools dependency
sdkmanager “build-tools;27.0.3”

Note – In this tutorial i installed platform android-28 and build tools version 27.0.3 because the current cordova support for those dependencies

Step 2

Add environment variables for all installed tools in order to identify by cordova

To add enviroment variables and paths right click on PC and click properties and go to advanced system settings and click on environment variables.

Add Paths for following dependencies.

  • JDK
  • SDK
  • Apache Ant
  • Gradle

Go to those dependencies bin folder and copy the path from navigation URL then edit the Path variable and add those dependency paths as below screenshots.

cordova without android studio 2

cordova without android studio 3

And additionally if needed add emulator directory also to path

Step 3

Now add System variables for following. In this don’t navigate to bin folder. Just copy your dependency URL and add to following variables as below screenshots

Create ANDROID_HOME variable as the name

Add the SDK command lines tools path as the value

Create ANDROID_SDK_PATH as the name

Add same as SDK command lines tools path as the value

Create ANT_HOME as the name

Add Apache Ant path as the value

cordova without android studio 4

Ok thats it!!! now go to quasar project. Make sure you have configured the project as cordova app. If not check my previous post about getting started with cordova.

Quasar cordova mobile app development

If those are correctly configured, run below code in CMD (inside quasar project) to run the project

quasar dev -m cordova -T android

If you having trouble with emulator please check how to configure emulation with AVD using command line

https://developer.android.com/studio/run/emulator-commandline

Extra Hint

Run cordova project on your real android device

Follow those steps.

  1. Connect your android device
  2. Make sure you have turned on the USB debugging mode or turn on by going to developer options
  3. Install driver for your device (Search your device driver and download) This is important in order to run
  4. Check whether your device working by typing adb devices in CMD
  5. If your device listed run the dev code above and cordova will automatically detect your device
  6. Make sure your device Android version is greater than android 5.0.2

Thanks all! if you have any questions please comment below.

Check the latest posts

Related Posts

quasar google maps
Mobile Development

Quasar Google maps with places

October 7, 2020
Cordova sign APK for production
Mobile Development

Cordova sign APK for production

September 29, 2020
How to sign quasar cordova app
Mobile Development

How to sign quasar cordova app

September 24, 2020
Quasar cordova mobile app
Mobile Development

Quasar cordova mobile app development

September 11, 2020
Next Post
install firmware on samsung device manually

Install official firmware on samsung device manually

Comments 2

  1. Pingback: Quasar create cordova mobile app – NSR-Blog
  2. Pingback: Quasar cordova mobile app development - NSR-BLOG

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR POSTS

quasar-file-upload-img

Quasar file upload process with laravel API

January 21, 2021
lumen framework tutorial

Lumen framework tutorial for beginners

October 24, 2020

Run cordova without android studio

September 12, 2020
quasar google maps

Quasar Google maps with places

October 7, 2020
MySQL you do not have the super privilege issue fix

MySQL you do not have the super privilege issue fix

January 19, 2021

EDITOR'S PICK

How to save media on iPhone storage

How to save media on iPhone storage

October 14, 2020
Quasar multiple file upload with laravel API

Quasar multiple file upload with laravel API

January 21, 2021
quasar framework

Quasar framework tutorial for beginners

September 14, 2020
Upgrade PHP from 7.2 to 7.3 on Ubuntu OS

Upgrade PHP from 7.2 to 7.3 on Ubuntu OS

February 8, 2021

About

Nsrtech is a blog which brings you high quality and valuable articles to your life. All articles will be on different categories which all peoples can solve their issues in a single blog site.

Follow us

Categories

  • Laravel
  • Mobile Development
  • Networking Lessons
  • Others
  • Quasar
  • Quasar
  • Software Guides
  • Theories
  • Tricks
  • Vue
  • Web Development
  • Web Development Lessons

Recent Posts

  • Upgrade PHP from 7.2 to 7.3 on Ubuntu OS
  • Enable CORS on Lumen API
  • Quasar multiple file upload with laravel API
  • Git branch not showing in Visual Studio Code fix
  • Home
  • About Us
  • Contact Us
  • Privacy Policy

© 2020 NSR-TECH Blog .

No Result
View All Result
  • Homepages
    • Home Page 1
    • Home Page 2

© 2020 NSR-TECH Blog .

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In