1
4

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 5 years have passed since last update.

apkファイル(android)を実機にインストールする方法(ReactNative)

Posted at

手順

デバイス(OSがandroid)をお使いのコンピュータに接続します。
その後、apkファイルがある場所まで移動し、下記を実行します。

adb install sample.apk

エラー

$ adb install sample.apk
* daemon not running; starting now at tcp:5037
* daemon started successfully
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

解決法

デバイスをコンピュータから外します。
andoridのSystemsへ移動し、Developer options -> USB debuggingをon, Revoke USB debugging authorizationsをタップします。

ターミナルにて、下記コマンドを実行

adb kill-server
adb start-server

参考

How To Fix ADB Device Unauthorized Message On Android

1
4
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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?