Create an environment variable (Optional)
- Open Terminal
- Type
cd ~this will take you to your home directory - Type
touch . profilethis will create a hidden file named profile - Type
open - e . profilethis will open the file you just created in TextEdit - In the file, type
export PATH = $ { PATH }:/ pathToTheAndroidSdkFolder / android - sdk - mac_86 / platform - tools - Save file, close TextEdit, Quit Terminal, and Relaunch Terminal
-
NOTE:
By creating an environment variable you won’t need to
cdto the Android/tools folder every time you want to run ADB
本教程指导您如何创建环境变量,以便在终端中更便捷地访问Android SDK的tools目录,无需每次运行ADB时都切换目录。
1158

被折叠的 条评论
为什么被折叠?



