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 :
/home/youssef/intellij-community/android/as-driver/utils/testSrc/com/android/tools/asdriver/tests/XvfbServer.java:26:31
java: package org.apache.commons.lang does not exist
/home/youssef/intellij-community/android/as-driver/utils/testSrc/com/android/tools/asdriver/tests/XvfbServer.java:85:10
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 :
https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed
Please sign in to leave a comment.
Hello,
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?