Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Bug] ACS Studio does not recognize dependencies (implementation + fileTree), causing build failures when using the libraries #61

@DangChuVMNewb

Description

@DangChuVMNewb

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

  1. Open a project in the latest ACS Studio
  2. Add a dependency, for example:

implementation 'com.squareup.okhttp3:okhttp:4.12.0'

or:

implementation fileTree(dir: 'libs', include: ['*.jar'])

  1. Sync Gradle
  2. Write code that uses the library, e.g.:

OkHttpClient client = new OkHttpClient();

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions