Description
In the latest ACS Studio, when adding libraries via implementation or using fileTree in build.gradle, the Editor does not recognize these dependencies properly.
The project can open, but whenever code uses classes or methods from these libraries, the build fails.
Steps to Reproduce
- Open a project in the latest ACS Studio
- Add a dependency, for example:
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
or:
implementation fileTree(dir: 'libs', include: ['*.jar'])
- Sync Gradle
- Write code that uses the library, e.g.:
OkHttpClient client = new OkHttpClient();
- Build the project → build fails, Editor may also highlight imports as errors
Expected Behavior
- ACS Studio should recognize the dependencies
- Editor should allow code completion and imports
- Project should build successfully when using the libraries
Actual Behavior
- Editor does not recognize the libraries
- Code completion and imports show errors
- Build fails with errors like:
cannot find symbol class not found
when using the library
Environment
- Application: ACS Studio (latest release)
- Device: Xiaomi Redmi 14C
- OS: Android 15
- Build type: Debug
Build Log (if available)
N/A
Additional Notes
The issue may be caused by:
- Gradle dependency resolver not running correctly
- Editor classpath not updating
fileTree not being parsed or mapped into the build classpath
- Sync not triggering index refresh