Android_导入工程出现的错误

 今天把工程的源代码导入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

此时会弹出如下提示框:

Android_导入工程出现的错误_第1张图片


点击 OK,然后点击 “Import Changes Enable Auto-Import” 框架便导入完成了,OK,搞定!

你可能感兴趣的:(Android/iOS测试)