ビルドバリアント
debug releaseの切り替えとか
Android Studioの左下あたりのBuild Variants
からdebugとリリースを切り替えできる。
設定はこの辺を参考に
https://developer.android.com/studio/build/build-variants?hl=ja#signing
https://developer.android.com/studio/publish/app-signing.html?hl=ja#sign-auto
設定画面までの行き方
[Project] ウィンドウでアプリを右クリックし、[Open Module Settings] をクリック
アプリの署名周り
ここの最初の1~5を順番にやる
https://developer.android.com/studio/publish/app-signing?hl=ja
リリース時のビルド
ここを参考にビルドしたら app/release
にaapファイルができる。
https://developer.android.com/studio/publish/app-signing?hl=ja#sign_release
設定画面までの行き方
メニューバーで、[Build] > [Build] > [Generate Signed Bundle/APK] をクリック