當前位置:首頁 » 安卓系統 » androidforlinux安裝

androidforlinux安裝

發布時間: 2023-01-05 10:35:02

linux怎麼安裝android開發環境

1、系統環境
[android@localhost ~]$ uname -a
Linux localhost.localdomain 2.6.32-71.el6.i686 #1SMP Wed Sep 1 01:26:34 EDT 2010 i686 i686 i386 GNU/Linux
[android@localhost ~]$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 6.0 (Santiago)
Release: 6.0
Codename: Santiago
[android@localhost ~]$
2、准備軟體
java
eclipse
android-sdk
ADT
這些軟體都可以在官網上下載。
3、搭建過程
(1) 安裝java
[android@localhost ~]$ rpm -qa | grep java
eclipse-mylyn-java-3.3.2-4.5.el6.i686
java-1.6.0-openjdk-devel-1.6.0.0-1.21.b17.el6.i686
java-1.6.0-openjdk-1.6.0.0-1.21.b17.el6.i686
tzdata-java-2010l-1.el6.noarch
gcc-java-4.4.4-13.el6.i686
java-1.5.0-gcj-1.5.0.0-29.1.el6.i686
subversion-javahl-1.6.11-2.el6.i686
ooobasis3.3-javafilter-3.3.0-9567.i586
libvirt-java-0.4.5-2.el6.noarch
lpg-java-compat-1.1.0-4.1.el6.noarch
libvirt-java-devel-0.4.5-2.el6.noarch
mysql-connector-java-5.1.12-2.el6.i686
ant-javamail-1.7.1-13.el6.i686
java-1.6.0-openjdk-javadoc-1.6.0.0-1.21.b17.el6.i686
java_cup-0.10k-5.el6.i686
[android@localhost ~]$
通過命令查看當前已經安裝了java的相關jdk,可以進行下一步。
(2) 安裝eclipse
從官網上下載的eclipse不需要按裝,直接解壓即可使用。如:
[android@localhost Base Env]$ ls
ADT-18.0.0.zip
android-sdk_r18-linux.tgz
Android開發環境搭建(Linux篇).doc
eclipse
eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz
Linux環境搭建.doc
Linux 下Android 開發環境搭建 .doc
[android@localhost Base Env]$ rm -R eclipse
[android@localhost Base Env]$ ls
ADT-18.0.0.zip
android-sdk_r18-linux.tgz
Android開發環境搭建(Linux篇).doc
eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz
Linux環境搭建.doc
Linux 下Android 開發環境搭建 .doc
[android@localhost Base Env]$ tar -zxfeclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz
[android@localhost Base Env]$ ls
ADT-18.0.0.zip
android-sdk_r18-linux.tgz
Android開發環境搭建(Linux篇).doc
eclipse
eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz
Linux環境搭建.doc
Linux 下Android 開發環境搭建 .doc
[android@localhost Base Env]$ cd eclipse
[android@localhost eclipse]$ ls
about_files configuration eclipse.ini icon.xpm p2
about.html dropins epl-v10.html libcairo-swt.so plugins
artifacts.xml eclipse features notice.html readme
[android@localhost eclipse]$ ll
總用量 540
drwxrwxr-x. 2 android android 4096 2月 17 03:06 about_files
-rw-rw-r--. 1 android android 18909 2月 8 21:55 about.html
-rw-rw-r--. 1 android android 88246 2月 17 03:06 artifacts.xml
drwxrwxr-x. 5 android android 4096 2月 17 03:06 configuration
drwxrwxr-x. 2 android android 4096 2月 17 03:06 dropins
-rwxr-xr-x. 1 android android 62814 2月 8 22:16 eclipse
-rw-rw-r--. 1 android android 407 2月 17 03:06 eclipse.ini
-rw-rw-r--. 1 android android 6 2月 8 21:36 epl-v10.html
drwxrwxr-x. 46 android android 4096 2月 17 03:06 features
-rw-rw-r--. 1 android android 9022 2月 8 21:54 icon.xpm
-rwxr-xr-x. 1 android android 266168 2月 8 21:54 libcairo-swt.so
-rw-rw-r--. 1 android android 8951 2月 8 21:36 notice.html
drwxrwxr-x. 5 android android 4096 2月 17 03:05 p2
drwxrwxr-x. 10 android android 36864 2月 17 03:06 plugins
drwxrwxr-x. 2 android android 4096 2月 17 03:06 readme
[android@localhost eclipse]$ ./eclipse
(3) 安裝android-sdk

[android@localhost Base Env]$ tar -zxfandroid-sdk_r18-linux.tgz
[android@localhost Base Env]$ ls
ADT-18.0.0.zip
android-sdk-linux
android-sdk_r18-linux.tgz
Android開發環境搭建(Linux篇).doc
eclipse
eclipse-cpp-indigo-SR2-incubation-linux-gtk.tar.gz
Linux環境搭建.doc
Linux 下Android 開發環境搭建 .doc
[android@localhost Base Env]$ cdandroid-sdk-linux/
[android@localhost android-sdk-linux]$ ls
add-ons platforms SDK Readme.txt tools
[android@localhost android-sdk-linux]$ cd tools/
[android@localhost tools]$ ll
總用量 6772
-rw-rw----. 1 android android 323 3月 30 23:20 adb_has_moved.txt
-rwxrwx---. 1 android android 3491 3月 30 23:19 android
drwxrwx---. 2 android android 4096 3月 30 23:19 ant
-rwxrwx---. 1 android android 1977 3月 30 23:19 apkbuilder
drwxrwx---. 3 android android 4096 3月 30 23:19 apps
-rwxrwx---. 1 android android 3116 3月 30 23:19 ddms
-rwxrwx---. 1 android android 46724 3月 30 23:19 dmtracemp
-rwxrwx---. 1 android android 1940 3月 30 23:19 draw9patch
-rwxrwx---. 1 android android 24828 3月 30 23:19 emulator
-rwxrwx---. 1 android android 2814128 3月 30 23:19 emulator-arm
-rwxrwx---. 1 android android 2765428 3月 30 23:19 emulator-x86
-rwxrwx---. 1 android android 136860 3月 30 23:19 etc1tool
-rwxrwx---. 1 android android 3282 3月 30 23:19 hierarchyviewer
-rwxrwx---. 1 android android 9680 3月 30 23:19 hprof-conv
drwxrwx---. 6 android android 4096 3月 30 23:19 lib
-rwxrwx---. 1 android android 2015 3月 30 23:19 lint
-rwxrwx---. 1 android android 9676 3月 30 23:19 mksdcard
-rwxrwx---. 1 android android 3169 3月 30 23:19 monkeyrunner
-rw-rw----. 1 android android 379587 3月 30 23:20 NOTICE.txt
drwxrwx---. 7 android android 4096 3月 30 23:19 proguard
-rw-rw----. 1 android android 66 3月 30 23:19 source.properties
-rwxrwx---. 1 android android 613856 3月 30 23:19 sqlite3
drwxrwx---. 2 android android 4096 3月 30 23:19 support
-rwxrwx---. 1 android android 3044 3月 30 23:19 traceview
-rwxrwx---. 1 android android 46784 3月 30 23:19 zipalign
[android@localhost tools]$ ./android update sdk

❷ 如何在安卓手機上安裝Linux系統 – WEB駭客

Android (x86)項目致力於移植Android系統到X86處理器上,使用戶可以更容易的在任何電腦上安裝Android。他們通過使用android源碼,增加補丁來使Android能夠在X86處理器,筆記本電腦和平板電腦下工作。 前一段時間,項目組發布了最新的「Android KitKat 4項目下載Android 4.4 x86 Kit Kat文件(地址) 3、要想安裝Android 4.4 kitkat,首先,你需要啟動剛剛下載.iso文件,打開VirtualBox,創建一個新的虛擬機,然後按照下面圖片設置: 4、接下來,它會詢問你新設備的內存大小,Android 4.4 kikat需要1G內存才能完美運行,但是由於我的電腦只有1G內存,我只能選擇512MB。 5、選擇「現在創建虛擬硬碟」(「Create a virtual hard drive now」)來創建一個新的硬碟。 6、它現在會詢問你新虛擬硬碟的類型,選擇VDI 7、現在設置虛擬硬碟大小,你可以按照你的所需來設置任何大小,但是除了將來安裝Apps所用的空間,至少需要4G來保證系統正確安裝。 8、現在你的新虛擬設備創建好了,可以啟動下載的.iso文件了,從左邊的列表選擇創建的虛擬機,點擊設置->存儲,如下圖,選擇android 4.4 kitkat RC2的鏡像文件。 9、點擊OK,打開機器,啟動.iso鏡像,選擇「安裝」開始在虛擬機上安裝系統。 10、請選擇一個分區來安裝Android-x86 11、如下圖,你可以看見cfdisk界面,cfdisk是一個分區工具,我們將要使用它來創建一個新的硬碟分區,用來安裝Android 4.4,現在,點擊「New」 12、選擇「Primary」作為分區類型

❸ android studio linux 怎麼安裝

1、下載JDK ,我下載的是jdk-7u51-linux-i586.tar.gz我這里有jvm文件夾,直接cd過去:
$ cd /usr/lib/jvm/
拷貝下載的jdk-7u51-linux-i586.tar.gz到jvm文件夾:
$ sudo cp ~/下載/jdk-7u51-linux-i586.tar.gz /usr/lib/jvm
解壓:
$ sudo tar -zxvf jdk-7u51-linux-i586.tar.gz
設置環境變數:
$ sudo gedit /etc/profile
在文檔結尾追加:
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_51
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
export CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
將系統默認的java修改過來:
$ sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_51/bin/java 300
$ sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_51/bin/javac 300
$ sudo update-alternatives --config java
$ sudo update-alternatives --config javac
檢測一下,輸入:

❹ linux下android sdk怎麼安裝

一、下載android sdk
下載SD,選擇Linux(i386)。因為SDK只有32位的,如果裝的是64位系統,則要安裝ia32-libs,運行32位程序。
ubuntu安裝命令:sudo apt-get install ia32-libs(在Ubuntu中的命令)。
centos安裝命令:
yum install glibc.i686

下載完成後解壓,在終端進入到SDK的根目錄,然後執行:tools/android update sdk –no-ui即可開始和windows裡面一樣的更新。

二、配置環境變數
更新完成後配置環境變數。使用命令 vi /etc/profile 編輯文件profile,然後在下面增加下面內容:
export ANDROID_HOME=/opt/softwaretools/android-sdk-linux
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH
/opt/softwaretools/android-sdk-linux為SDK的根目錄。
這個配置之後,以後要執行android裡面的命令,就不是需要進到這個目錄,直接可以在終端裡面輸入。
修改完成後,使用命令 :wq! 保存關閉文件,再執行命令 source /etc/profile 使配置生效一下。
在終端輸入:android,如果Android SDK Manager窗口出來了,就證明環境配置成功。

三、配置AVD
1、進入$SDK_HOME/toos目錄
2、命令窗口運行:./android avd

熱點內容
sql臨時表和表變數 發布:2025-05-17 06:02:38 瀏覽:723
蘋果如何用安卓無線耳機 發布:2025-05-17 06:01:53 瀏覽:821
sqlserver表關系 發布:2025-05-17 06:01:02 瀏覽:996
2017途觀配置什麼音響 發布:2025-05-17 05:53:50 瀏覽:843
64位安裝sql2000 發布:2025-05-17 05:33:17 瀏覽:845
安卓手機屏幕儀哪個好 發布:2025-05-17 05:33:16 瀏覽:592
加密的備忘錄 發布:2025-05-17 05:32:30 瀏覽:743
企業應用鎖初始密碼多少 發布:2025-05-17 05:26:04 瀏覽:834
蘋果和安卓怎麼共享wifi 發布:2025-05-17 05:21:09 瀏覽:826
編程實例100篇 發布:2025-05-17 05:16:54 瀏覽:263