linux如何開發安卓
⑴ 安卓底層開發 linux
驅動都是使用C寫的,所以你想搞底層驅動開發,你要有一定的C基礎。對於開發驅動來說,Windows系統是非常不適合的,特別是Android本身就是Linux內核,所以你也要掌握Linux操作系統,比如腳本的編寫,C代碼的編譯等等。
請採納答案,支持我一下。
⑵ Linux怎麼搭建Android開發環境
一、安裝前所需要准備的軟體:
1. JDK(jdk-6u27-linux-i586.bin
2. AndroidSDK(android-sdk_r12-linux_x86)
3. eclipse(eclipse-SDK-3.7-linux-gtk.tar.gz)
在Linux下創建一個android用戶,用來管理android的開發環境,把准備的軟體拷貝到/home/android目錄下,讓我們開始搭建環境吧!
二、安裝JDK,eclipse和AndroidSDK都依賴於jdk的環境,確保工作的目錄是/home/android
為jdk-6u27-linux-1586.bin添加可執行許可權 chmod u+x jdk-6u27-linux-1586.bin
使用 ./jdk-6u27-linux-1586.bin
配置環境變數,Linux下需要修改/etc/profile文件,使用 sudo vi /etc/profile
⑶ cpu 是arm 架構的linux 麒麟系統 怎樣使用android studio 開發app 程序
這個你需要去下載相應的Linux版本的android studio開發軟體,然後將其安裝到你的Linux系統上,安裝好後,進行相應的設置,就可以使用android studio開發app程序了。
樓主如果對Linux系統感興趣,想學習更多Linux系統知識,可以網路《Linux就該這么學》,不錯的一本Linux系統教程。
⑷ Linux系統是由什麼語言編寫,安卓為什麼是由Linux開發
Android基於Linux指的是Android使用了Linux作為它的內核,Linux是一個操作系統內核,操作系統內核負責與硬體相關的很多抽象和管理,比如內存管理,進程管理,文件系統管理,硬體抽象管理,網路協議棧,以及電源管理(但是Android對Linux的電源管理進行了相關的修改,使得它更適合在手機這樣的小設備上面運行 )。
說得簡單一點,Android可以說是Linux上的一個圖形界面系統, Android使用了Linux內核中提供的服務。Linux內核為Android屏蔽了很多硬體上的差異,使得Android比較容易地在不同的硬體上運行。
其實其他的Linux發行版也有在移動設備上的圖形界面,只是因為穩定性不好沒有被推廣開來。
Android因為專門針對小型設備進行過優化,因此使其特別適合於在移動設備上運行。
要基於Linux開發自己的系統是比較麻煩的,因為你需要提供自己的shell,運行庫等東西,這些都需要比較精深的操作系統,硬體等相關知識,當然也可以比較簡單:就是使用別人開發出來的,比如GNU的那一套東西。
要開發用戶界面也很麻煩,首先肯定得有一點圖形學的基礎,還要學會怎麼在Linux中進行圖形編程,總之工作量很大。
⑸ 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環境下的常用android開發命令有哪些
呵呵。。我們一樣是大學生。。我最近也在學android開發,java一定要學好,基本都是java語言,配搭xml的布局代碼。前幾個學期還好些了些網頁,xml容易上手。。好好學,先從搭環境開始,有什麼問題可以聯系我咯。。一起學習。。哈哈 基本語言:java、xml 工具:eclipse、android SDK、AVD 書本我推薦:《Android 開發入門指南 2版》(一定要先看完)、《Android SDK 開發範例 2版》(要有基礎才去跟著寫)具體的你看下android開發聯盟吧,由sundy老師創建的!希望對你有所幫助!
⑺ linux可以做android開發嗎
Android開發中主要還是用的Java語言,而linux是很多伺服器的運行環境。如果用Android開發一款企業級的,用戶量較大的軟體,能用到linux的。
⑻ 怎樣在Linux上開發安卓應用
與windows上一樣,安裝eclipse和java 再加上android開發插件adt即可。
⑼ 安卓系統是基於linux內核開發的,兩者的具體區別是什麼為什麼安卓多用於移動設備而linux不是
安卓基於linux內核,但是針對移動設備做了更多的優化,所以安卓多用於移動設備。兩者區別如下:
一、主體不同
1、安卓系統:是一種基於Linux的自由及開放源代碼的操作系統。
2、linux內核:是一套免費使用和自由傳播的類UNIX操作系統。
二、應用不同
1、安卓系統:主要使用於移動設備,如智能手機和平板電腦,由Google公司和開放手機聯盟領導及開發。
2、linux內核:是一個基於POSIX和Unix的多用戶、多任務、支持多線程和多CPU的操作系統。它能運行主要的Unix工具軟體、應用程序和網路協議。
三、特點不同
1、安卓系統:會同一系列核心應用程序包一起發布,該應用程序包包括客戶端,SMS短消息程序,日歷,地圖,瀏覽器,聯系人管理程序等。所有的應用程序都是使用JAVA語言編寫的。
2、linux內核:繼承了Unix以網路為核心的設計思想,是一個性能穩定的多用戶網路操作系統。