Linux(Fedora和Ubuntu等)下android真機調試

來源:互聯網
上載者:User

我的調試機為Milestone(謝謝mengzhidu2008的提醒)如下:

開發環境配置:

OS:Fedora14 KDE

IDE:eclipse3.6.1

ADT version:8.0.1

SDK:android-sdk_r07-linux_86

NDK:android-ndk_r5-linux_86

 

 

一、先將手機debug模式開啟,設定->應用程式->開發->usb調試,將usb調試後面打勾。

二、系統配置

1、設定檔

vim /etc/udev/rules.d/50-android.rules

然後將下面文字輸入:

SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"

儲存退出。

2、改變許可權

chmod 777 /etc/udev/rules.d/50-android.rules

3、debug

進
入
android-sdk中的
tools目
錄
,比如我的是/home/shiyanhui/android-sdk/tools,然後執
行

./adb kill-server

再
執
行

./adb devices

顯
示出真機
裝置
的
編
號表明
連
接成功。整個過程如示:


 

至此,linux下的android 真機debug環境才算配置好了。

三、eclipse中如何真機debug

最上面toolbar上,Run->Run Configurations->Target,然後選擇Manual,Apply後Run。

然後出現一個畫面:

選擇明亮綠條所示選項,OK即可debug。

祝好運!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.