Skip to content

java.lang.IllegalArgumentException: Invalid relative name: META-INF\proguard\com_example_ui_backupBackupViewModel_HiltModules_BindsModule_LazyClassKeys.pro #4533

@HyakYegoryaln

Description

@HyakYegoryaln

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.

Caused by: java.lang.IllegalArgumentException: Invalid relative name: META-INF\proguard\[com_example_ui_backupBackupViewModel_HiltModules_BindsModule_LazyClassKeys.pro](http://com_example_ui_backupbackupviewmodel_hiltmodules_bindsmodule_lazyclasskeys.pro/)
    at jdk.compiler/com.sun.tools.javac.file.JavacFileManager.getFileForOutput(Unknown Source)
    at org.jetbrains.kotlin.kapt3.base.javac.KaptJavaFileManager.getFileForOutput(KaptJavaFileManager.kt:82)
    at jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createResource(Unknown Source)
    at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalFiler.createResource(incrementalProcessors.kt:121)
    at dagger.spi.internal.shaded.androidx.room.compiler.processing.javac.JavacFiler.writeResource(JavacFiler.kt:94)
    at dagger.internal.codegen.processingstep.LazyClassKeyProcessingStep.writeProguardFile(LazyClassKeyProcessingStep.java:112)
    at dagger.internal.codegen.processingstep.LazyClassKeyProcessingStep.processOver(LazyClassKeyProcessingStep.java:106)
    at dagger.spi.internal.shaded.androidx.room.compiler.processing.XProcessingStep.process(XProcessingStep.kt:54)
    at dagger.spi.internal.shaded.androidx.room.compiler.processing.CommonProcessorDelegate.processLastRound(XBasicAnnotationProcessor.kt:168)
    at dagger.spi.internal.shaded.androidx.room.compiler.processing.javac.JavacBasicAnnotationProcessor.process(JavacBasicAnnotationProcessor.kt:65)
    at org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor.process(incrementalProcessors.kt:90)
    at org.jetbrains.kotlin.kapt3.base.ProcessorWrapper.process(annotationProcessing.kt:216)

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

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