Skip to content
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

After removing resources dependency, project doesn't compile #4242

Closed
igordmn opened this issue Feb 6, 2024 · 0 comments · Fixed by #4257
Closed

After removing resources dependency, project doesn't compile #4242

igordmn opened this issue Feb 6, 2024 · 0 comments · Fixed by #4257
Assignees
Labels
bug Something isn't working gradle Gradle plugin problems resources

Comments

@igordmn
Copy link
Collaborator

igordmn commented Feb 6, 2024

Compose 1.6.0-beta02

  1. use a project where resources are applied:
implementation(compose.components.resources)
  1. build the project
  2. remove the dependency:
//implementation(compose.components.resources)
  1. build the project

Actual
Compilation error:

/Users/igor/Projects/compose-multiplatform-template/shared/build/generated/compose/resourceGenerator/kotlin/myapplication/shared/generated/resources/Res.kt:2:3: error: An annotation argument must be a compile-time constant
/Users/igor/Projects/compose-multiplatform-template/shared/build/generated/compose/resourceGenerator/kotlin/myapplication/shared/generated/resources/Res.kt:2:17: error: Unresolved reference: compose
...

Expected
No compilation errors, generated classes are removed

@igordmn igordmn added bug Something isn't working gradle Gradle plugin problems resources labels Feb 6, 2024
@igordmn igordmn changed the title After removing resources dependency, project doesn't compile After removing resources dependency, project doesn't compile Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working gradle Gradle plugin problems resources
Projects
None yet
2 participants