IntelliJ IDEA源码编译报错:Package not found and symbol cannot be resolved

问题描述 投票:0回答:0

我正在尝试按照构建说明从源代码构建 IntelliJ IDEA。但我在编译代码时遇到此错误消息:

/home/youssef/intellij-community/android/as-driver/utils/testSrc/com/android/tools/asdriver/tests/XvfbServer.java:26:31

java: 包 org.apache.commons.lang 不存在

/home/youssef/intellij-community/android/as-driver/utils/testSrc/com/android/tools/asdriver/tests/XvfbServer.java:85:10

java: 找不到符号 符号:变量 SystemUtils 位置:类 com.android.tools.asdriver.tests.XvfbServer


我还在项目结构窗口中看到一些无效的依赖项:

-Module intellij.android.core:依赖项列表中的项目“commons-lang”无效 -模块 intellij.android.as-driver.utils:依赖项列表中的无效项目“commons-lang” -模块 intellij.android.glance-designer:依赖项列表中的无效项目“commons-lang” -模块 intellij.android.studio.integration:依赖项列表中的无效项目“commons-lang” -模块 intellij.android.compose-designer.tests:依赖项列表中的无效项目“commons-lang” -Module android.sdktools.db-compiler:依赖项列表中的无效项“commons-lang”


好像找不到包org.apache.commons.lang,无法解析符号SystemUtils。此外,多个模块的依赖项列表中存在无效项。

有人可以帮我解决这个错误吗?这个错误可能是什么原因,我该如何解决?

++++++++++++++++++

另外,我在getPlugins.sh脚本中遇到了一个问题,但我能够解决它。 这是:

致命:读取错误:对等致命连接重置:早期 EOF 致命:索引包失败

我遵循的解决方案: 致命:早期 EOF 致命:索引包失败

我试过了

https://intellij-support.jetbrains.com/hc/en-us/community/posts/6779294805266-org-apache-commons-lang3-not-recognized-in-my-Intellij-IDE

intellij-idea intellij-plugin
© www.soinside.com 2019 - 2024. All rights reserved.