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

Couldn't resolve FqName com.google.protobuf.kotlin.ProtoDslMarker for Anvil #749

Open
0xAliHn opened this issue Sep 22, 2023 · 1 comment
Labels
discussion Question or discussion

Comments

@0xAliHn
Copy link

0xAliHn commented Sep 22, 2023

Adding all the protobuf dependencies and created proto file. Once trying to build the project seeing this error:

com.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: Couldn't resolve FqName com.google.protobuf.kotlin.ProtoDslMarker for Psi element: com.google.protobuf.kotlin.ProtoDslMarker

Details log:

com.squareup.anvil.compiler.api.AnvilCompilationException: Back-end (JVM) Internal error: Couldn't resolve FqName com.google.protobuf.kotlin.ProtoDslMarker for Psi element: com.google.protobuf.kotlin.ProtoDslMarker
File being compiled: (16,4) in *** SampleProtoKt.kt

at com.squareup.anvil.compiler.internal.PsiUtilsKt.requireFqName(PsiUtils.kt:294)
at com.squareup.anvil.compiler.internal.PsiUtilsKt.requireFqName(PsiUtils.kt:145)
at com.squareup.anvil.compiler.internal.reference.AnnotationReferenceKt.toAnnotationReference(AnnotationReference.kt:227)
at com.squareup.anvil.compiler.internal.reference.ClassReference$Psi$annotations$2.invoke(ClassReference.kt:147)
at com.squareup.anvil.compiler.internal.reference.ClassReference$Psi$annotations$2.invoke(ClassReference.kt:146)
at kotlin.UnsafeLazyImpl.getValue(Lazy.kt:81)
at com.squareup.anvil.compiler.internal.reference.ClassReference$Psi.getAnnotations(ClassReference.kt:146)

@JoelWilcox
Copy link
Member

@0xAliHn are you still seeing this issue? If so, can you share a branch with your changes and add any other details? At the moment there's not enough info to determine if you're running into a bug in Anvil or something requiring changes in your project.

@JoelWilcox JoelWilcox added the discussion Question or discussion label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Question or discussion
Projects
None yet
Development

No branches or pull requests

2 participants