8.16.2015

Kali Linux 2.0da Android Studioni o`rnatish

Buning uchun zarur bo`lgan dasturiy vositalar:
Java JDK
Android Studio

Java JDKni o`rnatish
Dastlab ushbu bog`lam orqali Java JDK yuklab olinadi. Ushbu misolda Java JDKning 8 versiyasi ko`rib o`tilgan. Yuklab olingan fayl dastlab arxivdan ochiladi:
tar -xzvf jdk-8u51-linux-x64.tar.gz
So`ngra ushbu papka /opt papkasiga ko`chiriladi:
mv jdk1.8.0_51 /opt
Quyidagi sozlashlar amalga oshiriladi:
update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_51/bin/java 1
update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_51/bin/javac 1
update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /opt/jdk1.8.0_51/jre/lib/amd64/libnpjp2.so 1
update-alternatives --set java /opt/jdk1.8.0_51/bin/javaupdate-alternatives --set javac /opt/jdk1.8.0_51/bin/javac
update-alternatives --set mozilla-javaplugin.so /opt/jdk1.8.0_51/jre/lib/amd64/libnpjp2.so
Ushbu sozlashlar amalga oshirilgandan so`ng, qilingan ishning to`g`ri bajarilganini tekshirib ko`rish uchun ishlab turgan Java va uning kompilyatori versiyasi tekshiriladi:
java -version
javac -version

Android SDKni o`rnatish
Navbat Andoid SDKni o`rnatishga. Dastlab ushbu bog`lam orqali Android SDK yuklab olinadi va arxivdan ochiladi va /opt papkasiga ko`chiriladi:
tar xvzf android-sdk_r24.3.3-linux.tgz 
mv android-sdk-linux /opt/
So`ngra Android SDKni o`rnatish jarayoni boshlanadi:
/opt/android-sdk-linux/tools
./android