-
Notifications
You must be signed in to change notification settings - Fork 959
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
AGP 7.0.0-alpha13: lint task fails #408
Comments
Upgrading our AGP to alpha-14 seems to have solved this issue for us |
@pablisco Thanks for the heads-up! Unfortunately I can't try this out right now as we can't update to alpha-14 just yet. Will report back as soon as I can do the update. |
I am seeing this error with both AGP alpha-13 and alpha-14. It was fine with alpha-12. Can work around it with |
@pablisco @dschwemleinST for me it works just fine again with alpha-14 even without |
@ubuntudroid Thank you for following up! It does appear to work after a few clean/builds using alpha-14 without |
My bad, I didn't test on CLI/CI. 🤦 There it still does not work. So I have to keep the issue open. 😞 |
@dschwemleinST That's interesting. I can confirm, that cleaning fixes things locally. However on CI it still doesn't work despite cleaning all caches... 🤔 |
@ubuntudroid Exact same behavior here - it worked locally but once it failed on CI I removed my comment because I thought I must have been mistaken. So for now I am using alpha14 with the |
Very confusing. Even adding a gradle clean to the CI build workflow didn't fix it there... I think I'll disable Timber lint checks for now, as disabling parallel lint in general would slow down builds on all machines and the Timber checks are mostly geared towards new Timber users anyway. |
As it seems the error happened with alpha13-14, I made a reported the bug on the APG side => https://issuetracker.google.com/issues/184565320 |
Last follow up, as it seems the issue escalated!
|
Found the reason might due to |
I'm still experiencing this issue with:
|
Getting #410 merged would probably be a step in the right direction (I suppose I should clean up some of the deploy stuff 🤔 ). Should make it easier to update to AGP 7.0.0 when it is stable (unless doing it pre stable is OK in which case I would just do that). |
Probably a red herring- I updated to AGP/lint 7.0.0-beta03 a few days ago and it's worked fine on both MacOS and Linux/CI (where every build gets a clean container.) However, I just tried disabling Jetifier (our project is finally there 🙌) and this popped up. FYI in case it's related. |
Partial Analysis : http://googlesamples.github.io/android-custom-lint-rules/api-guide.html#partialanalysis Currently Timber lint has issue when partial analysis is enabled, we can re-enable the partial analysis once Timber is updated with a fix. JakeWharton/timber#408
Partial Analysis : http://googlesamples.github.io/android-custom-lint-rules/api-guide.html#partialanalysis Currently Timber lint has issue when partial analysis is enabled, we can re-enable the partial analysis once Timber is updated with a fix. JakeWharton/timber#408
* Bump AGP to v7.0.0 * Bump Gradle wrapper to v7.0.2 * Replace deprecated Gradle usages * Disable Lint partial analysis Partial Analysis : http://googlesamples.github.io/android-custom-lint-rules/api-guide.html#partialanalysis Currently Timber lint has issue when partial analysis is enabled, we can re-enable the partial analysis once Timber is updated with a fix. JakeWharton/timber#408 * Enable checking dependencies when running lint This will be default in AGP 7.1.0 * Enable core library desugaring in platform module * Remove unused resources in router module * Bump Lint to v30.0.0 * Add `Vendor` in `SimpleIssueRegistry` * Update CHANGELOG
I have this issue with AGP 7.0.0.
|
There are a few PRs waiting to be merged that should fix this. |
Timber Lint is currently incompatible with AGP 7 See: JakeWharton/timber#408 Related: 9338
Timber Lint is currently incompatible with AGP 7 See: JakeWharton/timber#408 Related: 9338
Any update on this issue? |
Im guessing we have to wait until this commit gets released. Here is the PR (already merged) for that commit. From the Android Lint API guide, the section:
states that using In that already merged PR, the change from using What is the difference between calling |
Fix is merged but not yet released. |
Timber Lint is currently incompatible with AGP 7 See: JakeWharton/timber#408 Related: 9338
When running the lint task with AGP 7.0.0-alpha13 it will fail with the following error:
Everything works fine when using AGP 7.0.0-alpha12. Disabling the issues obviously works as a temporary workaround.
The text was updated successfully, but these errors were encountered: