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

WSLからadb接続する際にバージョンを揃えるのが面倒じゃない?

Posted at

経緯

  • WSLからadbを使用する際に,Windows側のadbとのバージョンを揃えるのが面倒だった.
  • また,Windows側かWSL側のどちらかのadbを更新してしまうと,片方も更新する手間があり,更に面倒.

回避策

  • WSL側でWindows側のadb.exeを使う
adb.exe [command]
  • 毎回adb.exe と打つのは面倒なので,aliasを追加 ( 場所は.bashrcとかお好みで)
alias adb='adb.exe'
  • これでわざわざ揃えなくても,adbが使える!
  • ただし,wslでadbをinstallしている場合は,Removeしておいたほうがよかです.
2
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
2
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?