Android_匯入工程出現的錯誤

來源:互聯網
上載者:User

 今天把工程的原始碼匯入android studio後,發現framework中的許多jar包都沒有關聯,出現了很多的問題,因為工程是用Maven編譯的,所以點擊main開啟右鍵,選擇Add Framewor Support,出現錯誤如下:

22:17:54 Compilation completed with 100 errors and 68 warnings in 8 sec
22:24:53 Compilation completed with 100 errors and 68 warnings in 7 sec
22:32:49 RuntimeException: update failed for AnAction with ID=EditSource: java.lang.ClassNotFoundException: com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
22:32:53 RuntimeException: update failed for AnAction with ID=EditSource: java.lang.ClassNotFoundException: com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
22:37:12 RuntimeException: update failed for AnAction with ID=EditSource: java.lang.ClassNotFoundException: com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
22:38:59 RuntimeException: update failed for AnAction with ID=EditSource: java.lang.ClassNotFoundException: com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
22:39:57 Maven projects need to be imported: Import Changes Enable Auto-Import
22:40:05 Compilation completed with 100 errors and 68 warnings in 8 sec
22:42:37 RuntimeException: update failed for AnAction with ID=EditSource: java.lang.ClassNotFoundException: com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService
22:43:02 RuntimeException: update failed for AnAction with ID=EditSource: java.lang.ClassNotFoundException: com.android.tools.idea.roots.ui.configuration.GradleProjectSettingsService

點擊 Import Changes,編輯完成後仍然會出現很多問題。

遇到問題如下:

 Unregistered Git root detected

7月18日再次把工程匯入Android studio,發現此時 顯示了工程的名稱了 ,呵呵,似乎問題要解決了,提示如下:

22:00:10 Maven projects need to be imported: Import Changes Enable Auto-Import
22:00:28 Frameworks detected: Android framework is detected in the project Configure

此時會彈出如下提示框:

點擊 OK,然後點擊 “Import Changes Enable Auto-Import” 架構便匯入完成了,OK,搞定!

聯繫我們

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