Node.js & npm
Java JDK (for Android builds)
Android SDK (via Android Studio or command line)
Internet access
Install Node.js if not already installed:
sudo dnf install nodejs npm
Verify installation:
node -v
npm -v
To avoid permission errors, configure a local global directory:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
Add it to your shell path:
For Bash
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
For Zsh
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> ~/.zshrc
source ~/.zshrc
Install Cordova CLI globally:
npm install -g cordova
Create a new app:
cordova create myApp com.example.myapp MyApp
cd myApp
myApp = Folder name
com.example.myapp = App ID
MyApp = App name
cordova platform add android
This prepares your app to be built for Android.
Copy your web app files (index.html, style.css, script.js,
etc.) into the www/ folder:
cp -r /path/to/your/web/files/* www/
Run this command to generate your APK:
cordova build android
The APK will be created in:
platforms/android/app/build/outputs/apk/debug/app-debug.apk
Enable developer mode + USB debugging on your Android device.
Install using ADB:
adb install
platforms/android/app/build/outputs/apk/debug/app-debug.apk
Or transfer the APK manually and install it.
If your app needs native features (camera, GPS, etc.), add plugins like this:
cordova plugin add cordova-plugin-camera
cordova plugin add cordova-plugin-geolocation
For Google Play release, youβll need to sign the APK. Ask for a signing guide if needed.
Cordova Official Site: https://cordova.apache.org
Android SDK Setup: https://developer.android.com/studio
Capacitor (Cordova Alternative): https://capacitorjs.com
Youβve now successfully turned your web project into a native Android app using Cordova. π