Status Update
Comments
jb...@google.com <jb...@google.com> #2
This specific error was fixed as part of TestFile
was moved to the proper place. That fixed the lint for all AGP versions < 8.7. There is now a new error for the use of older APIs on 8.7 and since 8.7 is still throwing the same error, even though it is for a different reason now, we will track the progress for fixing that on this bug.
The error when using AGP 8.7 is:
../intermediates/lint-cache/lintReportDebug/migrated-jars/androidx.navigation.common.lint.NavigationCommonIssueRegistry-5daa12651be0734e..jar: Library lint checks out of date;
these checks will be skipped!
Lint found an issue registry (androidx.navigation.common.lint.NavigationCommonIssueRegistry)
which was compiled against an older version of lint
than this one. This is usually fine, but not in this
case; some basic verification shows that the lint
check jar references (for example) the following API
which is no longer valid in this version of lint:
org.jetbrains.kotlin.analysis.api.lifetime.KaDefaultLifetimeTokenProvider#Companion
(Referenced from androidx/navigation/lint/UtilKt.class)
Therefore, this lint check library is not included
in analysis. This affects the following lint checks:
EmptyNavDeepLink,WrongStartDestinationType,MissingSerializableAnnotation,MissingKeepAnnotation
Recompile the checks against the latest version, or if
this is a check bundled with a third-party library, see
if there is a more recent version available.
Version of Lint API this lint check is using is 14.
The Lint API version currently running is 16 (8.7+).
../intermediates/lint-cache/lintReportDebug/migrated-jars/androidx.navigation.compose.lint.NavigationComposeIssueRegistry-598b224f0ce2f9f2..jar: Library lint checks out of date;
these checks will be skipped!
Lint found an issue registry (androidx.navigation.compose.lint.NavigationComposeIssueRegistry)
which was compiled against an older version of lint
than this one. This is usually fine, but not in this
case; some basic verification shows that the lint
check jar references (for example) the following API
which is no longer valid in this version of lint:
org.jetbrains.kotlin.analysis.api.lifetime.KaDefaultLifetimeTokenProvider#Companion
(Referenced from androidx/navigation/lint/UtilKt.class)
Therefore, this lint check library is not included
in analysis. This affects the following lint checks:
ComposableDestinationInComposeScope
ComposableNavGraphInComposeScope
UnrememberedGetBackStackEntry
WrongStartDestinationType
MissingKeepAnnotation
MissingSerializableAnnotation
Recompile the checks against the latest version, or if
this is a check bundled with a third-party library, see
if there is a more recent version available.
Version of Lint API this lint check is using is 14.
The Lint API version currently running is 16 (8.7+).
../intermediates/lint-cache/lintReportDebug/migrated-jars/androidx.navigation.runtime.lint.NavigationRuntimeIssueRegistry-a8fea42aedb9bdb3..jar: Library lint checks out of date;
these checks will be skipped!
Lint found an issue registry (androidx.navigation.runtime.lint.NavigationRuntimeIssueRegistry)
which was compiled against an older version of lint
than this one. This is usually fine, but not in this
case; some basic verification shows that the lint
check jar references (for example) the following API
which is no longer valid in this version of lint:
org.jetbrains.kotlin.analysis.api.lifetime.KaDefaultLifetimeTokenProvider#Companion
(Referenced from androidx/navigation/lint/UtilKt.class)
Therefore, this lint check library is not included
in analysis. This affects the following lint checks:
DeepLinkInActivityDestination,WrongStartDestinationType,WrongNavigateRouteType,MissingKeepAnnotation,MissingSerializableAnnotation
Recompile the checks against the latest version, or if
this is a check bundled with a third-party library, see
if there is a more recent version available.
Version of Lint API this lint check is using is 14.
The Lint API version currently running is 16 (8.7+).
pa...@wewell.app <pa...@wewell.app> #3
It's possible to avoid the issue by disabling the rule. Trying to add it to baseline does nothing for me.
android {
lint {
disable += listOf(
"ObsoleteLintCustomCheck",
)
}
}
ap...@google.com <ap...@google.com> #4
Project: platform/frameworks/support
Branch: androidx-main
Author: Jeremy Woods <
Link:
Add common-test submodule
Expand for full commit details
Add common-test submodule
We need this lint test source set for common test utils
Test: existing tests pass
Bug: 371926651
Change-Id: I9f04a7fe768fd93dc80f1cca03fe9a4ecb2f4d75
Files:
- A
navigation/lint/common-test/build.gradle
- M
settings.gradle
Hash: 846f3638ba1425499329ab94c09a01b21fc1e1dc
Date: Wed Oct 09 22:37:43 2024
ap...@google.com <ap...@google.com> #5
Project: platform/frameworks/support
Branch: androidx-main
Author: Jeremy Woods <
Link:
Move lint test utils to common-test module
Expand for full commit details
Move lint test utils to common-test module
Test utils cannot be referenced in production code, so we need to move test utils to test source set.
Test: existing tests pass
Bug: 371926651
Change-Id: I9db9b1e53d54492f1000cf45342d08993908ccc1
Files:
- M
navigation/lint/common-test/src/main/java/androidx/navigation/lint/test/Stubs.kt
- A
navigation/lint/common-test/src/main/java/androidx/navigation/lint/test/Util.kt
- M
navigation/lint/common/build.gradle
- D
navigation/lint/common/src/main/java/androidx/navigation/lint/LintUtil.kt
- A
navigation/lint/common/src/main/java/androidx/navigation/lint/Util.kt
- M
navigation/navigation-common-lint/build.gradle
- M
navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/NavigationCommonIssueRegistry.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/CompatUtil.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/MissingKeepAnnotationDetectorTest.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/MissingSerializableAnnotationDetectorTest.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/WrongStartDestinationTypeDetectorTest.kt
- M
navigation/navigation-compose-lint/build.gradle
- M
navigation/navigation-compose-lint/src/main/java/androidx/navigation/compose/lint/NavigationComposeIssueRegistry.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/CompatUtil.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/MissingKeepAnnotationDetectorTest.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/MissingSerializableAnnotationDetectorTest.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/Stubs.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/WrongStartDestinationTypeDetectorTest.kt
- M
navigation/navigation-runtime-lint/build.gradle
- M
navigation/navigation-runtime-lint/src/main/java/androidx/navigation/runtime/lint/NavigationRuntimeIssueRegistry.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/CompatUtil.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/MissingKeepAnnotationDetectorTest.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/MissingSerializableAnnotationDetectorTest.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/Stubs.kt
Hash: c096da78e256c30df77af2b59033c0378adc4e28
Date: Wed Oct 09 22:40:13 2024
ap...@google.com <ap...@google.com> #6
Project: platform/frameworks/support
Branch: androidx-main
Author: Clara Fok <
Link:
Move navigation-lint-common to submodule within navigation-lint
Expand for full commit details
Move navigation-lint-common to submodule within navigation-lint
This new structure will allow us to create a second submodule `common-test` to house test-specific utils.
Test: existing tests pass
Bug: 371926651
Change-Id: I13c07e3ad37ba52f5a0dbef3e2668afd360306b9
Files:
- M
navigation/lint/common/build.gradle
- M
navigation/lint/common/src/main/java/androidx/navigation/lint/BaseTypeSafeDestinationMissingAnnotationDetector.kt
- M
navigation/lint/common/src/main/java/androidx/navigation/lint/BaseWrongStartDestinationTypeDetector.kt
- M
navigation/lint/common/src/main/java/androidx/navigation/lint/LintUtil.kt
- M
navigation/lint/common/src/main/java/androidx/navigation/lint/TestStub.kt
- M
navigation/navigation-common-lint/build.gradle
- M
navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/TypeSafeDestinationMissingAnnotationDetector.kt
- M
navigation/navigation-common-lint/src/main/java/androidx/navigation/common/lint/WrongStartDestinationTypeDetector.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/CompatUtil.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/MissingKeepAnnotationDetectorTest.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/MissingSerializableAnnotationDetectorTest.kt
- M
navigation/navigation-common-lint/src/test/java/androidx/navigation/common/lint/WrongStartDestinationTypeDetectorTest.kt
- M
navigation/navigation-compose-lint/build.gradle
- M
navigation/navigation-compose-lint/src/main/java/androidx/navigation/compose/lint/TypeSafeDestinationMissingAnnotationDetector.kt
- M
navigation/navigation-compose-lint/src/main/java/androidx/navigation/compose/lint/WrongStartDestinationTypeDetector.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/CompatUtil.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/MissingKeepAnnotationDetectorTest.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/MissingSerializableAnnotationDetectorTest.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/Stubs.kt
- M
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/WrongStartDestinationTypeDetectorTest.kt
- M
navigation/navigation-runtime-lint/build.gradle
- M
navigation/navigation-runtime-lint/src/main/java/androidx/navigation/runtime/lint/TypeSafeDestinationMissingAnnotationDetector.kt
- M
navigation/navigation-runtime-lint/src/main/java/androidx/navigation/runtime/lint/WrongNavigateRouteDetector.kt
- M
navigation/navigation-runtime-lint/src/main/java/androidx/navigation/runtime/lint/WrongPopBackStackRouteDetector.kt
- M
navigation/navigation-runtime-lint/src/main/java/androidx/navigation/runtime/lint/WrongStartDestinationTypeDetector.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/CompatUtil.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/MissingKeepAnnotationDetectorTest.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/MissingSerializableAnnotationDetectorTest.kt
- M
navigation/navigation-runtime-lint/src/test/java/androidx/navigation/runtime/lint/Stubs.kt
- M
settings.gradle
Hash: 23c78e6c3e1c9332b45d68985a6f04c45c4d1929
Date: Thu Sep 26 10:09:05 2024
cl...@google.com <cl...@google.com> #7
Fixed and available in both navigation 2.8.5
and navigation 2.9.0-alpha04
yc...@gmail.com <yc...@gmail.com> #8
Looks like it's still happening with 2.8.5.
cl...@google.com <cl...@google.com> #9
The agp version also needs to be 8.8.0-rc02
or higher.
Description
Component used: Navigation
Version used: 2.8.2
Android Gradle Plugin 8.7.0
Steps to reproduce:
Following errors occurs, making the lint task to fail: