从 Android studio 导入项目时出现 Intellij Idea 错误
Intellij Idea error while importing projet from Android studio
将项目从 Android Studio 导入 Intellij Idea 专业版时出现以下错误。我尝试通过从外部导入来添加 JAXB,但没有成功。
Unable to load class 'javax.xml.bind.JAXBException'. Possible causes
for this unexpected error include: Gradle's dependency cache may be
corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping
all Gradle daemons may solve this problem. Stop Gradle build processes
(requires restart)
Your project may be using a third-party plugin which is not compatible
with the other plugins in the project or the version of Gradle
requested by the project.
In the case of corrupt Gradle processes, you can also try closing the
IDE and then killing all Java processes.
我的 gradle-wrapper.properties :
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
错误意味着在 Java 12 中 JAXB 已被删除或不兼容,我通过将我的 jdk 从 jdk 12 恢复到 [=13 来解决确切的问题=] 8. 希望对你有帮助。
将项目从 Android Studio 导入 Intellij Idea 专业版时出现以下错误。我尝试通过从外部导入来添加 JAXB,但没有成功。
Unable to load class 'javax.xml.bind.JAXBException'. Possible causes for this unexpected error include: Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
我的 gradle-wrapper.properties :
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
错误意味着在 Java 12 中 JAXB 已被删除或不兼容,我通过将我的 jdk 从 jdk 12 恢复到 [=13 来解决确切的问题=] 8. 希望对你有帮助。