Compilation error in IntelliJ IDEA source code: Package not found and symbol cannot be resolved 关注
I am trying to build IntelliJ IDEA from source code by following the build instructions.but I am facing this error message while compiling the code :
java: package org.apache.commons.lang does not exist
java: cannot find symbol
symbol: variable SystemUtils
location: class com.android.tools.asdriver.tests.XvfbServer
I also see some invalid dependencies in the project structure window:
-Module intellij.android.core: invalid item 'commons-lang' in the dependencies list
-Module intellij.android.as-driver.utils: invalid item 'commons-lang' in the dependencies list
-Module intellij.android.glance-designer: invalid item 'commons-lang' in the dependencies list
-Module intellij.android.studio.integration: invalid item 'commons-lang' in the dependencies list
-Module intellij.android.compose-designer.tests: invalid item 'commons-lang' in the dependencies list
-Module android.sdktools.db-compiler: invalid item 'commons-lang' in the dependencies list
It seems like the package org.apache.commons.lang cannot be found, and the symbol SystemUtils cannot be resolved. Additionally, there are invalid items in the dependencies list of multiple modules.
Can someone help me with this error? What could be the reason for this error, and how can I resolve it?
Also, I encountered a problem in the getPlugins.sh script, but I was able to solve it.
It was :
fatal: read error: Connection reset by peer fatal: early EOF fatal: index-pack failed
The solution I followed :
* I tried : https://intellij-support.jetbrains.com/hc/en-us/community/posts/6779294805266-org-apache-commons-lang3-not-recognized-in-my-Intellij-IDE
Could you please attach screenshot from "Project Structure | Modules | "Intellij - Android - As-driver - utils" - Dependencies"?
It looks like some issue with project configuration. "common-lang" dependency shouldn't be there. Could you please try to import "community" project again?
I tried that and the same problem happens.
Could you please open "Project Structure | Libraries", find "common-lang", click on "Reload" and attach idea.log ("Help | Show Log in..") and screenshot from "Libraries" afterwards?