Eclipse匯入Android項目的正確方法

來源:互聯網
上載者:User

標籤:

直接:

               


             

             



在android 中匯入項目後 包出現錯誤的解決方案

選中項目,右擊開啟Properties:
1.檢查android選項頁中是否勾選了project build target。
2.檢查java build path 中 orler and explort 中是否勾選上了對應的android libraries。
3.開啟菜單條中windows -> preferences : java -> compiler 然後更換jdk版本號碼,通常是將1.6換成1.5就無錯了。

本人用這種方法攻克了(5.0 or 6.0. Found ‘1.7‘ instead. Please use Android Tools > Fix Project Properties)問題,其它沒試過,遇到問題在說吧。
4.檢查你的Android SDK路徑設定:windows -> preferences : android
5.設定你的Android SDK環境變數:在path中設定 ANDROID_SDK_HOME 值為你的android sdk檔案夾
6.假設問題出如今gen中,先嘗試將gen下的包刪除,再等待eclipse自己主動編譯

Eclipse匯入Android項目的正確方法

聯繫我們

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