WindowsでCordovaを使っているイオンのアプリを構築する方法


つの質問-あなたはCordovaと建物APKを使用して小さいコンデンサよりも小さいサイズに気づいたか?あなたのフィードバックを知っている!

どのようにWindowsでCordovaを使用してイオンのアプリを構築する


プレサイト
  • Andorid studio, JDK (preferd version 1.8), gradle .
    Tricks
    
    After installed Android studio build a native hello world app and run it through Emulator or physical device for the first time. It will automatically gives you the support of installing gradle & reduce much time to installing & finding gradle version compability.
    

  • あなたがjava --versionを走らせることができるこの情報をチェックすること
    java version "1.8.0_321"
    Java(TM) SE Runtime Environment (build 1.8.0_321-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 25.321-b07, mixed mode)
    
  • JDKをインストールした後、あなたはこの2つのフォルダ経路を見ることができるこのC:\Program Files\JavaまたはC:\Program Files (x86)のようなあなたのマシンの経路を得ます.
    jdk1.8.0_321
    jre1.8.0_321
    

  • 更新環境変数
    // Add these in User Variables :
    
    ANDROID_HOME : C:\Users\theanam\AppData\Local\Android\Sdk
    ANDROID_PLATFORM_TOOLS : C:\Users\theanam\AppData\Local\Android\Sdk\platform-tools
    ANDROID_TOOLS : C:\Users\theanam\AppData\Local\Android\Sdk\tools
    JAVA_HOME : C:\Program Files\Java\jdk1.8.0_321
    
    //Add these in System Variables path:
    
    C:\Program Files\Java\jre1.8.0_321\bin  // Otherwise you will get Jarsigner is not recognized internal or external command
    
    C:\Program Files\Java\jdk1.8.0_321\bin // Otherwise keytool is not recognized internal or external command
    
    C:\Program Files (x86)\Common Files\Oracle\Java\javapath
    C:\gradle-7.4.1\bin  // If path not found installed it.
    
  • イオンアプリケーションビルドステージ&署名署名APK署名

  • に行く
  • はそのフォルダのApp Folderを開けます.
  • terminalである.keystoreファイルがアプリケーションフォルダで生成されます.

  • ランkeytool -genkey -v -keystore HERE_YOUR_KEY_NAME-key.keystore -alias HERE_YOUR_APP_ALIAS_NAME -keyalg RSA -keysize 2048 -validity 10000
  •    After successfully executed this command you will get a message like this,
       Built the following apk(s):
           D:\xyz\ion-cordova\platforms\android\app\build\outputs\apk\release\app-release-unsigned.apk
    
       It generate an unsigned apk that you never install in a phone so need to sign this apk.
    
  • は、このAPKに署名し始めます.
  • 今、あなたはアプリと一緒に満足している.
    サインオフ
    セファリ