Skip to content

[Bug]: Crane lint checks fail #800

@IanGClifton

Description

@IanGClifton

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

Is this an issue related to one of the samples?

  • Yes, this is a specific issue related to this samples repo.

Sample app

Crane

What happened?

When running ./scripts/gradlew_recursive.sh lintDebug, lint had an error analyzing the Crane sample. The error isn't especially clear, but it seems like a bug we need to file (as in a bug with a tool or library rather than our samples). Here's the error I saw:

Crane/app/src/androidTest/java/androidx/compose/samples/crane/details/CityMapViewTests.kt: Error: Unexpected failure during lint analysis of CityMapViewTests.kt (this is a bug in lint or one of the libraries it depends on)

Message: 'java.util.List org.jetbrains.uast.UField.getAnnotations()'

The crash seems to involve the detector dagger.lint.DaggerKotlinIssueDetector.
You can try disabling it with something like this:
    android {
        lintOptions {
            disable "JvmStaticProvidesInObjectDetector", "FieldSiteTargetOnQualifierAnnotation", "ModuleCompanionObjects", "ModuleCompanionObjectsNotInModuleParent"
        }
    }

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions