0
0

More than 3 years have passed since last update.

Android studio:Kotlin:アプリのプロジェクト作成時にやること

Last updated at Posted at 2020-12-05

1.プロジェクト作成時にパッケージ名をexampleから変更
キャプチャ.PNG

パッケージ名のcom.exambple.myapplicationのexample部分。
exampleのままだとplay storeでひっかかるので変える。
com.test.applicationみたいな感じで。

もしそのままでつくってしまったらリファクタリング。
手順は以下参考。
https://joh-sys.com/blog/2020/05/12/%E3%80%90android%E3%80%91%E3%80%8Ccom-example%E3%80%8D%E3%81%AF%E7%A6%81%E6%AD%A2%E3%81%95%E3%82%8C%E3%81%A6%E3%81%84%E3%82%8B%E3%81%9F%E3%82%81%E3%80%81%E5%88%A5%E3%81%AE%E3%83%91%E3%83%83%E3%82%B1/#toc3
ただしbundle.gradeはプロジェクト直下と、app\srcにあるので注意。変えるのはapp\srcにある方。

2.アプリの表示名を変える。
\app\src\main\res\values\string.xmlのアプリ名を変更

string.xml
<resources>
    <string name="app_name">ここにアプリ名</string>
</resources>
0
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
0
0