Android開發問題記錄

來源:互聯網
上載者:User

已解決:

1、Error generating final archive: Debug Certificate expired on 10/09/18 16:30

原因分析:

android要求所有的程式必須有簽名,否則就不會安裝該程式。在我們開發過程中,adt使用debug keystore,在 preference->android->buid中設定。debug的keystore預設有效期間為一年,如果你是從一年前開始完android程式,那麼在一年後匯入這個app的時候很可能出現debug keystore到期,導致你無法產生 apk檔案。

此時你只要刪除debug keystore就行,系統又會為你產生有效期間為一年的私密金鑰。 

解決方案:

進入C:\Documents and Settings\Administrator\.android 刪除路徑下的debug.keystore及 ddms.cfg。

(不同環境下的目錄可能略有不同,可在eclipse中尋找此路徑:Window->Preferences->Android->Build下 Default debug keystore)

然後重新匯入即可。

2、android源碼下載過程參見:http://source.android.com/source/downloading.html

3、解決android ERROR: Unknown option '--no-crunch'

  原因是更新了ADT但是沒有更新Android SDK Tools和Android SDK Platform-tools。
  解決方案是開啟SDK manager進行二者的更新。

4、使用 Google APIs開發,Google Maps如何使用Google Map開發見這裡或者官方文檔;

  Google Map取座標方法見這裡,或者右鍵地圖選擇功能表項目“這兒是什嗎?”。

5、SDK內建例子APIDemos運行問題及解決方案。

6、Eclipse偵錯工具launching delegate 27% 編輯器假死問題

  解決方案:開著android虛擬機器(AVD),將eclipse重啟。

7、ubuntu(Linux)下如何設定真機調試:http://www.cnblogs.com/sense7/articles/2196151.html,已親試。

8、對於加速度感應器和方向感應器的座標值,很窘很困惑,不理解啊不理解,閱讀完文檔,更窘更困惑,這篇文章較好的解釋了這6個值。

 9、 Launch error: Failed to connect to remote VM. Connection timed out.

      解決方案:Go to Window -> Preferences -> General -> Network Connections, and check if there is any proxy set here, change the 'Active Provider'   to be 'Direct' and try again.

10. 在偵錯工具時在一些目錄下建立的檔案或目錄,在DDMS的File Explorer裡面沒有刪除許可權,可以通過運行'adb shell'進入shell環境,則可以為所欲為。

11.在'adb shell'環境裡操作(例如rm)sdcard的檔案,報" Read-only file system"。

  解決方案:mount -o remount rw /sdcard

12.DDMS的File Explorer的sdcard找不到,或者sdcard中的一些檔案不顯示。

  解決方案:sdcard在/mnt/sdcard,我試過如果目錄的名字含中文,目錄在File Explorer裡可以看到,但是裡面的檔案看不到。

 

未解決: 

1、Google Maps介面XML編輯報:Failed to find style 'mapViewStyle' in current theme

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.