After importing the source code of the project to Android studio today, we found that many jar packages in the framework are not associated, and many problems occur. Because the project is compiled using Maven, right-click main and choose, select Add framewor support. The following error occurs:
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
Click Import changes. Many problems still occur after editing.
The problem is as follows:
Unregistered git root Detected
In July 18, I imported the project to Android studio again and found that the project name was displayed. The problem seemed to be resolved and the prompt was as follows:
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
The following prompt box is displayed:
Click OK, and then click "Import changes enable auto-Import" to complete the import. OK!