This Banner is For Sale !!
Get your ad here for a week in 20$ only and get upto 15k traffic Daily!!!

How to build an Ionic App using Cordova in windows (in 1st Attempt)

Easy methods to construct a Ionic app utilizing Cordova in home windows

Prequsites :

  1. Set up Andorid studio, JDK (preferd model 1.8), gradle.

    After put in Android studio construct a local good day world app and run it by Emulator or bodily machine for the primary time. It should mechanically provides you the assist of putting in gradle & scale back a lot time to putting in & discovering gradle model compability.
  2. Checking this data you possibly can run java --version

    java model "1.8.0_321"
    Java(TM) SE Runtime Atmosphere (construct 1.8.0_321-b07)
    Java HotSpot(TM) 64-Bit Server VM (construct 25.321-b07, blended mode)
  3. After set up JDK you’ll get a path in your machine like this C:Program FilesJava or C:Program Recordsdata (x86) you capable of see this two folder path.

  4. Replace atmosphere variable

    // Add these in Person Variables :
    ANDROID_HOME : C:UserstheanamAppDataLocalAndroidSdk
    ANDROID_PLATFORM_TOOLS : C:UserstheanamAppDataLocalAndroidSdkplatform-tools
    ANDROID_TOOLS : C:UserstheanamAppDataLocalAndroidSdktools
    JAVA_HOME : C:Program FilesJavajdk1.8.0_321
    //Add these in System Variables path:
    C:Program FilesJavajre1.8.0_321bin  // In any other case you'll get Jarsigner isn't acknowledged inner or exterior command
    C:Program FilesJavajdk1.8.0_321bin // In any other case keytool isn't acknowledged inner or exterior command
    C:Program Recordsdata (x86)Frequent FilesOracleJavajavapath
    C:gradle-7.4.1bin  // If path not discovered put in it.

Ionic App construct stage & Signing unsigned apk

  1. Go to the App Folder
  2. Open terminal in that folder.
  3. Run keytool -genkey -v -keystore HERE_YOUR_KEY_NAME-key.keystore -alias HERE_YOUR_APP_ALIAS_NAME -keyalg RSA -keysize 2048 -validity 10000. You can see a keystore file is generated in your app folder.
  4. Run ionic cordova construct android --prod --release --verbose
   After efficiently executed this command you'll get a message like this,
   Constructed the next apk(s):

   It generate an unsigned apk that you just by no means set up in a cellphone so must signal this apk.
Enter fullscreen mode

Exit fullscreen mode

  1. Run jarsigner --verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore HERE_YOUR_KEY_NAME-key.keystore "D:xyzion-cordovaplatformsandroidappbuildoutputsapkreleaseapp-release-unsigned.apk" HERE_YOUR_APP_ALIAS_NAME it is going to begin signing this apk.

Now you’re joyful to go along with the APP.

Signing Off

The Article was Inspired from tech community site.
Contact us if this is inspired from your article and we will give you credit for it for serving the community.

This Banner is For Sale !!
Get your ad here for a week in 20$ only and get upto 10k Tech related traffic daily !!!

Leave a Reply

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

Want to Contribute to us or want to have 15k+ Audience read your Article ? Or Just want to make a strong Backlink?