LoginSignup
1
0

More than 5 years have passed since last update.

リリースビルドで作成したapkファイルをGooglePlay Developer Consoleを経由せず、直接実機に転送する方法(Mac)

Posted at

GooglePlay Developer Consoleへapp-release.apkをアップする前の段階で、実機に転送してテストする手順をまとめました。

ADBコマンドを有効にする

Android Studioを起動してSDKファイルのパスを確認

スクリーンショット_2016-11-26_14_57_19.png

スクリーンショット_2016-11-26_14_57_27.png

adbコマンドはplatform-toolsにあります。

/Applications/android-sdk/sdk/platform-tools

.bash_profileにadbコマンドのパスを通す

vim ~/.bash_profile

export PATH=/Applications/android-sdk/sdk/platform-tools:$PATH

試しにリリースビルドする

スクリーンショット_2016-11-26_17_37_56.png

app-release.apk

Reveal in Finderをクリックして、Finderでapp-release.apkが保存されている場所へ移動してターミナルを開く。

MapsActivity_java_-_mapmarker1125_-____Desktop_Android_Dropbox_mapmarker1125_.png

ターミナルからadbコマンドでインストール

adb install -r app-release.apk

アップデートのコマンド。

adb install app-release.apk

新規インストールするためのコマンド。

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