-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.lang.IllegalArgumentException: Invalid relative name: META-INF\proguard\com_example_ui_backupBackupViewModel_HiltModules_BindsModule_LazyClassKeys.pro #4533
Comments
happens on my project too. I am also developing on a Windows PC. kotlin: 2.0.21 |
This error also happens in 2.53.1 |
I tried using KSP instead of KAPT, and the problem was resolved. I used KSP version "2.0.21-1.0.28" |
I can't remove kapt because I'm using databinding. |
i am too I rollback to and the problem was resolved |
I took a brief look at this and my guess this is due to Java's Typically, choosing the OS-specific path separators would be the behavior we would want; however, in this case the resource file is being stored in a JAR file, and the defined path separator in a JAR is I've filed https://issuetracker.google.com/383578358. |
Since resources are placed on the Jar the specification requires the use of forward-slash file path separator, while the Path API converts the given path to string using file-system dependant separator. KspFiler is not affected since the resources is placed in the file system and later packaged into the output jar and paths can use file-system dependant separator. See google/dagger#4533. Bug: 383578358 Test: Existing Change-Id: I823f7a5ce2feb3afafda2129770a17a2d16b0baf
Should we wait for a new release ? |
Yes, however I'm still waiting on the XProcessing fix (https://issuetracker.google.com/383578358) to be available to Dagger. I should be able to do a release in the next day or two. |
I'll plan on doing a release tomorrow, but if anyone wants to try it out and verify the fix beforehand you can use Dagger's HEAD-SNAPSHOT artifact. While we're pretty confident the XProcessing change should fix this issue, we also don't have any test coverage on Windows so we'll be relying on your feedback to verify the fix. |
Sure thing, I'm gonna test as soon as possible when it's live. |
It's working now. Thank you so much ! |
That's fine because you don't need to remove the Replacing the |
I am encountering an issue when building my project on Windows devices. The build process fails due to problems related to META-INF files, specifically during KAPT or while processing dependencies like com.google.dagger:hilt-compiler.
This issue only occurs on Windows systems, and the project builds without issues on macOS and Linux.
I use:
implementation "com.google.dagger:hilt-android:2.53"
kapt "com.google.dagger:hilt-compiler:2.53"
id 'com.android.application' version '8.7.2' apply false
id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
gradle-8.9
The text was updated successfully, but these errors were encountered: