1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Android studio:Kotlin:アプリの更新を行う

Posted at

ビルド時に書き換えるのはバージョン情報

app\build.gradleファイルの

versioncode と versionnameを変える。
versioncodeは整数のみ。
versionnameは1.1的なやつ

build.gradle
    defaultConfig {
        applicationId "com.shopping.noshoppingbag"
        minSdkVersion 16
        targetSdkVersion 30
        versionCode 2 ←ここ
        versionName "1.1" ←ここ

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

ビルドするときは最初にビルドしたときの署名鍵が必要。

android studioの上の
ビルド→署名済みバンドルまたはapkの作成→Android App Bundle

2.PNG

ここのキー保管パスに最初にアプリをビルドしたときに作ったjksファイルを指定する。
なくしてたら更新は不可。アプリをplayから削除して出し直すしかない。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?