Status Update
Comments
li...@gmail.com <li...@gmail.com> #2
jg...@google.com <jg...@google.com>
tn...@google.com <tn...@google.com> #3
Analyzing dynamic features on their own like that doesn't work properly since even though they "depend" on the app they're actually including into an app so for example the unused resource check only makes sense when you look at it from the app perspective, not the other way around.
I believe in 7.0 we've fixed this in the sense that there isn't a lint task on the individual dynamic features.
sp...@google.com <sp...@google.com> #4
+1. In AGP 7.0 there are no lint tasks in dynamic-features; instead, any dynamic-features are analyzed when running lint on the app module. OP, can you try with AGP 7.0.0-rc01
, run lintRelease
on the corresponding application module, and see if you still hit the same issue?
jo...@jossiwolf.de <jo...@jossiwolf.de> #5
Not using dynamic feature modules but have this with an application module and a library module, happening on 7.0.0-rc01. I haven't figured out a repro yet but will upload one if I manage.
sp...@google.com <sp...@google.com> #6
Re #5, yes, a repro project would be very helpful, thanks!
sp...@google.com <sp...@google.com> #7
Closing this bug as not reproducible, but please reopen if you have a repro project.
Description
AS none
AGP 4.0.2/4.1.3/4.2.2
Gradle 6.7
attached sample project
Steps to repro:
1. checkout
2. cd ./DynamicFeatures, open file `buid.gradle`, upgrade Android Gradle Plugin version to 4.0.2/4.1.3/
3. run ./gradlew features:java:lintRelease
AR:
DynamicFeatures/features/java/src/main/AndroidManifest.xml:31: Error: JavaSampleActivity must extend android.app.Activity [Instantiatable]
<activity android:name="com.google.android.samples.dynamicfeatures.ondemand.JavaSampleActivity">
ER:
lint checks successfully finished
Note: