I made the application using Ionic Cordova
Now I want to assemble it and suggested that I create a key at the assembly stage.
On the official site it offers to execute the command in the console
$ keytool -genkey -v -keystore MY-RELEASE-
KEY.keystore -alias MY_ALIAS_NAME -keyalg RSA -keysize 2048 -validity 10000
but where exactly should it be performed?
In what directory is the nada?
Do I need to install android SDK or android Studio.
Who had the experience of building applications, tell me how to do everything correctly
Keytool and jarsigner comes with the java jdk. You can run it wherever you want.
The zipalign tool can be found in /path/to/Android/sdk/build-tools/VERSION/zipalign. For example, on OS X with Android Studio installed, zipalign is in ~/Library/Android/sdk/build-tools/VERSION/zipalign
Just follow everything here. Of course you need JDK
https://ionicframework.com/docs/v1/guide/publishing.html
Related
I created some web pages with html css and jquery, and I want to convert it to Android apps.
so I download android SDK and using Adobe dreamweaver 5.5 to create my apk file.
it was created and i installed on my phone without any problem. but when I want to upload my apk file to android stores I have a message that: program should not be on debug sign.
How can I remove debug sign or create a my own sign?
You just have to create the key with keytool using the command line (in windows : cmd.exe)
Here is the guide how to do it (scroll down to "1. Obtain a suitable private key")
Depends on how you are signing. Command line with Keytool
or Using Android studio. both ways are easy
For android studio I recommend reading here
For the Keytool method its
$ keytool -genkey -v -keystore my-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
I am trying to post an app created through Apache Cordova using Visual Studio 2015. I have been able to export the .APK successfully but I have not been able to find a keystore in order to sign this .APK so I can post it.
I can not find a keystore anywhere in the Visual Studio project build and whenever I try to run the CMD it says that I have an "Illegal Option: aaaa-key.keystore keytool -genkeypair" and doesn't generate a Keystore.
If there is no Keystore generated by the IDE (that I could find) and my CMD isn't creating one as instructed from MSN then I feel kind of stuck. Please help.
You can generate a new key with this command:
First open cmd and then type:
cd C:\Program Files (x86)\Java\jdk1.7.0_55\jre\bin
Then run:
keytool -genkeypair -v -keystore YourKeyName.keystore ^
-alias YourKeyName -keyalg RSA -keysize 2048 -validity 10000
I generated a apk file by running
meteor build ~/output-dir --server=myapp.meteor.com
,
then got release-unsigned.apk in the folder output-dir, it looks good.
I copy this apk file to my Android phone and tried to install it, after install guide, it shows message App not installed.
I have installed some apk files built by java on my phone before, it works, so is there something I need handle when I install apk file built by meteor?
As the documentation states, you can't install unsigned applications on your Android phone:
Android requires that all apps be digitally signed with a certificate
before they can be installed.
As far as I can tell, you have the following two options to run your app:
Use an emulator to run your unsigned app or
sign your app.
To sign your app, you can use the steps, described in the Meteor guide for submitting Android apps to the Play Store:
Generate a private key using the keytool (skip this step, in case you already have a private key generated):
keytool -genkey -alias your-app-name -keyalg RSA -keysize 2048 -validity 10000
Sign your app using the jarsigner tool:
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 unaligned.apk your-app-name
After that, you should be able to install and run your application on your Android phone.
After building my project on Android Studio 1.2 on Ubuntu 14.04 I can't get any debug.keystore on the ./android folder which I need for the google maps API. I tried it again and again but could not get it. Can somebody help me?
According to documentation..
debug keystore resides in path : $HOME/.android/debug.keystore
and if it is not there, it will generate it automatically (After you test your application in debug mode)
read this from android developer documentation.
Alternatively, you can generate a keystore without Eclipse with the following JDK command from wither a Windows command prompt or Cygwin with this command:
keytool -genkeypair -alias androiddebugkey -keypass android -keystore debug.keystore -storepass android -dname "CN=Android Debug,O=Android,C=US" -validity 9999
Keytool is a part of the JDK and needs to be in the system PATH to be used in this way. The path should be something like: C:\\bin
Once generated, be sure to copy the keystore file into the proper location. If you ran the command from your Cygwin home directory (the directory cygwin starts in), you will find the debug.keystore file here: C:\\home\\
A more practical answer can be found at Missing debug.keystore
Even though the answer on the following link was answered from a windows perspective I still believe it will help you solve your problem.
I want to sign my android applications. I followed android developers website. but i didn't get full idea. I don't know how to get "Key tools" for windows.
Please help how to get key tools and help me.
Thanks in advance
Your don't need to use them directly
if you're using Android Studio go to build tab then go to generate signed APK and follow the wizard and create new key.
In Eclipse there is a similiar approach right click on your project then select Export project and follow the wizard.
Keep the created key in secure place because if you lose it you won't be able to update your application.
keytool.exe is in your JDK directory. For example: C:\Program Files\Java\jdk1.7.0_51\jre\bin\keytool.exe
Navigate to directory: C:\Program Files\Java\jdk1.7.0_51\jre\bin in your terminal and then lauch
keytool -genkey -v -keystore my-release-key.keystore
-alias alias_name -keyalg RSA -keysize 2048 -validity 10000
You can also add ;C:\Program Files\Java\jdk1.7.0_51\jre\bin\; to your classpath in Windows and after adding keytool will be available in any place in terminal.