-
Notifications
You must be signed in to change notification settings - Fork 173
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
lintChecks with AGP7 #56
Comments
Do you mean that they're not packaged (e.g. the AAR file does not contain a lint.jar) or that somehow the checks aren't working/being applied? |
this. An example of a lint check we have is below. And to test the setup, we previously added a usage of
|
Same issue with AGP 7.0.3 and lint 30.0.3. |
I figured out that in my case it's caused by the maven publish plugin since I used third party maven plugin and seems it doesn't work well with AGP 7.0.3. It's ok when I switch to builtin maven-publish plugin. |
I have the same problem, but I'm not using the maven-publish plugin at all, and I'm not publishing my lint checks via a library module, I'm just using them locally. I am using kotlin for my build scripts, not groovy.....would that make a difference? Android Studio Bumblebee | 2021.1.1 Beta 4 I've literally just included the code from this repo and have a Log.println() in my MainActivity which doesn't get highlighted when I run ./gradlew lintDebug or inside Android Studio. |
We are currently migrating to AGP 7 and noticed that our custom lint rules are not included in the lint checks.
We previously included them using
lintChecks project(":libraries:lint-rules")
and we only need them for local code check, so no publishing needed. Is there anything specific that needs to be changed to make it work with AGP 7?The text was updated successfully, but these errors were encountered: