Ubuntu environment configuration records: (4) configure the sdk and sdk Environment Variables
1. installation and configuration
1) download the sdk
Official http://developer.android.com/sdk/index.html
Select android-sdk_r12-linux_x86.tgz
2) decompress the sdk
The decompressed path is/home/developer/android/android-sdk-linux_x86 (note: the path can be arbitrarily specified .)
3) Configure Environment Variables
Enter
Sudo gedit ~ /. Bashrc
Append the following text at the end of the file
# Set path for android sdk tools
Export PATH = $ PATH:/your_android-sdk-linux_path/tools/
Export PATH = $ PATH: // your_android-sdk-linux_path/platform-tools/
4) Save the update
Source ~ /. Bashrc
2. FAQs
1) the device does not have permission
If you run adb directly
Adb devices
* Daemon not running. starting it now *
* Daemon started successfully *
List of devices attached
???????????? No permissions
Solution:
Switch to root
Adb kill-server
Adb start-server
2) There is no file or directory
Bash:/home/kaizen/developer/android/sdk/platform-tools/adb: the file or directory does not exist.
This is because the adb program in the Android SDK is 32-bit. A 32-bit library file must be installed in the Ubuntu x64 System for 32-bit programs.
Solution:
Enter
Sudo apt-get install ia32-libs
Failed to install adt for eclipse When configuring the sdk environment for linux ubuntu
Android ???
Update failed.
It seems that google's ssl website has been attacked.
We recommend that you update the package from the Internet and then manually update it.
In the first half of the year, I have also done android applets, that is, under ubuntu
How to configure the SDK for linux ubuntu
I don't know what SDK you mean.