Udgivet i

Change version and code version number Android Studio

In build.grandle write

android {
    signingConfigs {
            keyAlias 'myalias'
            keyPassword 'somepass'
            storeFile file('C://Keystore/my.keystore')
            storePassword 'somepass'

    defaultConfig {
        applicationId '/com/....myapp.apk'
        minSdkVersion 9
        targetSdkVersion 26
        versionCode 30
        versionName '19.3'
        signingConfig signingConfigs.release
Udgivet i

Putty private key in Android ConnectBot

To make it work for ConnectBot, you need to have a OpenSSH version of this file.
Luckily one can use PuTTYgen to create the OpenSSH key.


In Puttygen, do the following:

  1. Load the private key: [File] -> [Load Private Key] (*.ppk)
  2. Enter passphrase if applicable
  3. Goto: [Conversions] -> [Export OpenSSH key] and save


Now find a way to get this OpenSSH key to your Android like /sdcard folder.


In ConnectBot, do the following:

  1. [Menu] -> [Manage Pubkeys]
  2. [Menu] -> [Import]
  3. Choose the OpenSSH key from /sdcard
  4. Click the red lock icon to load the key into memory (lock icon turns green)
  5. Enter passphrase/password if applicable
  6. (Disconnect current session)
  7. Connect!