Skip to content

I encountered a bug while using the latest version of Hilt. #4784

Open

Description

@Joslyn-Chen

Android Studio Narwhal | 2025.1.1
Build #AI-251.25410.109.2511.13665796, built on June 19, 2025
Runtime version: 21.0.6+-13391695-b895.109 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 10.0
Kotlin plugin: K2 mode
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2048M
Cores: 4

The above is the version information of Android Studio, and the following is the error information:

Execution failed for task ':app:compileDebugJavaWithJavac'.

Could not resolve all files for configuration ':app:androidJdkImage'.
Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JdkImageTransform: E:\AndroidProjects\AndroidSDK\platforms\android-36\core-for-system-modules.jar.
> Error while executing process C:\Program Files\Android\Android Studio\jbr\bin\javac.exe with arguments {--system=none --patch-module=java.base=E:\AndroidProjects\AndroidSDK\platforms\android-36\core-for-system-modules.jar -d C:\Users.gradle\caches\8.13\transforms\9e490dc96c249d66290889316c3c2c31-cb0659be-ea16-4ce1-becd-8ad729c22332\transformed\output\temp C:\Users.gradle\caches\8.13\transforms\9e490dc96c249d66290889316c3c2c31-cb0659be-ea16-4ce1-becd-8ad729c22332\transformed\output\temp\module-info.java}

The following file is the demo I used. Every compilation, the above error will be reported.

MyApplication630.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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