Android studio signature, androidstudio
Androidstudio will sign the default buildType for the debug package, so you can directly run and install apk on your mobile phone. If we add buildType (such as user, eng) by ourselves) if you run the command directly, it means there is no signature and the installation cannot be performed.
Signature steps:
Under the directory where you want to save the signature file (for example, to sign the test project, you should generally go to build-apk under the test directory)
Run:
Keytool-genkey-alias user_key.keystore-keyalg RSA-validity 20000-keystoreuserkey. keystore
(User_key is the custom file name, and 20000 is the validity period)
After running, the program keytool may be included in the following software packages: gcj-4.6-jre-headless ,......
Run sudo apt-get install gcj -......
Enter key store password: android (password, no less than 6 characters)
Enter key password for <user_key.keystore>: android (password, I wrote it casually)
Common Name: android
(I will enter all android devices later)
The userkey. keystore will be generated under build-apk (your custom directory ).
Welcome to my personal website