Ñ¡ÔñÄĸöLinuxϵͳ¾ÙÐÐAndroid¿ª·¢£¿
Ñ¡ÔñÄĸöLinuxϵͳ¾ÙÐÐAndroid¿ª·¢£¿
Ëæ×ÅÒƶ¯»¥ÁªÍøµÄ¿ìËÙÉú³¤£¬Android²Ù×÷ϵͳÒѾ³ÉΪȫÇòÊÖ»úÊг¡µÄÖ÷Á÷Ö®Ò»¡£×÷Ϊһ¸ö¿ª·¢Õߣ¬ÈôÊÇÄãÏëÒª½øÈëAndroidÓ¦Óÿª·¢µÄÁìÓò£¬¾ÍÐèҪѡÔñÒ»¸öÊʺϵIJÙ×÷ϵͳÀ´¾ÙÐпª·¢ÊÂÇé¡£Linuxϵͳ×÷Ϊ¿ªÔ´ÏµÍ³£¬±»Ðí¶à¿ª·¢ÕßÆÕ±éʹÓá£ÄÇôÔÚÑ¡ÔñÄĸöLinuxϵͳ¾ÙÐÐAndroid¿ª·¢Ê±£¬Ó¦¸Ã˼Á¿ÄÄЩÒòËØÄØ£¿½ÓÏÂÀ´£¬ÎÒÃǽ«Ì½ÌÖÒ»ÏÂÕâ¸öÎÊÌ⣬²¢¸ø³öһЩÏêϸµÄ´úÂëʾÀý¡£
Ubuntu
UbuntuÊÇÒ»¸ö»ùÓÚDebianµÄLinux¿¯Ðа棬ÆÕ±éÓÃÓÚ×ÀÃæºÍЧÀÍÆ÷ϵͳ¡£ÓÉÓÚÆäÒ×ÓÃÐԺ͸»ºñµÄÈí¼þ×ÊÔ´£¬Ðí¶à¿ª·¢ÕßÑ¡ÔñUbuntu×÷ΪAndroid¿ª·¢µÄ²Ù×÷ϵͳ¡£UbuntuÌṩÁ˸»ºñµÄ¿ª·¢¹¤¾ßºÍ¿â£¬ÈçAndroid StudioµÈ£¬Àû±ã¿ª·¢Õß¾ÙÐÐAndroidÓ¦ÓõĿª·¢ºÍµ÷ÊÔ¡£
ÔÚUbuntuÉϾÙÐÐAndroid¿ª·¢£¬Ê×ÏÈÐèҪװÖÃJava¿ª·¢ÇéÐκÍAndroid SDK¡£ÒÔÏÂÊÇÔÚUbuntuÉÏ×°ÖÃAndroid SDKµÄʾÀý´úÂ룺
# ×°ÖÃOpenJDK sudo apt-get install openjdk-8-jdk # ÏÂÔØAndroid SDK wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip # ½âѹAndroid SDK unzip sdk-tools-linux-3859397.zip -d android-sdk # ÉèÖÃÇéÐαäÁ¿ echo "export ANDROID_HOME=/path/to/android-sdk" >> ~/.bashrc echo "export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" >> ~/.bashrc # ¸üÐÂÇéÐαäÁ¿ source ~/.bashrc
µÇ¼ºó¸´ÖÆ
Fedora
FedoraÊÇÒ»¸öÓÉÉçÇøÖ§³ÖµÄLinux¿¯Ðа棬רעÓÚÌṩ×îеÄÈí¼þºÍÊÖÒÕ¡£FedoraÒ²ÊÇÒ»¸ö²»´íµÄÑ¡Ôñ£¬ÓÃÓÚAndroid¿ª·¢¡£FedoraÌṩÁ˸»ºñµÄ¿ª·¢¹¤¾ßºÍ¿â£¬ÈçAndroid StudioºÍEclipseµÈ£¬Àû±ã¿ª·¢Õß¾ÙÐÐAndroidÓ¦ÓõĿª·¢ºÍ²âÊÔ¡£
ÔÚFedoraÉϾÙÐÐAndroid¿ª·¢£¬Í¬ÑùÐèҪװÖÃJava¿ª·¢ÇéÐκÍAndroid SDK¡£ÒÔÏÂÊÇÔÚFedoraÉÏ×°ÖÃAndroid SDKµÄʾÀý´úÂ룺
# ×°ÖÃOpenJDK sudo dnf install java-1.8.0-openjdk # ÏÂÔØAndroid SDK wget https://dl.google.com/android/repository/sdk-tools-linux-3859397.zip # ½âѹAndroid SDK unzip sdk-tools-linux-3859397.zip -d android-sdk # ÉèÖÃÇéÐαäÁ¿ echo "export ANDROID_HOME=/path/to/android-sdk" >> ~/.bashrc echo "export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools" >> ~/.bashrc # ¸üÐÂÇéÐαäÁ¿ source ~/.bashrc
µÇ¼ºó¸´ÖÆ
×ܽáÀ´Ëµ£¬Ñ¡ÔñÄĸöLinuxϵͳ¾ÙÐÐAndroid¿ª·¢È¡¾öÓÚСÎÒ˽¼ÒµÄϲ»¶ºÍÏ°¹ß¡£ÎÞÂÛÊÇUbuntuÕÕ¾ÉFedora£¬¶¼ÌṩÁ˸»ºñµÄ¿ª·¢¹¤¾ßºÍ¿â£¬¿ÉÒÔÖª×㿪·¢ÕßµÄÐèÇó¡£Ï£ÍûÒÔÉϵĴúÂëʾÀý¿ÉÒÔ×ÊÖúÄãÔÚLinuxϵͳÉϾÙÐÐAndroidÓ¦ÓõĿª·¢ÊÂÇé¡£
ÒÔÉϾÍÊÇÑ¡ÔñÄĸöLinuxϵͳ¾ÙÐÐAndroid¿ª·¢£¿µÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡