Feature Request P3
Status Update
Comments
ze...@google.com <ze...@google.com> #2
Linking failed
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
/<Stripped Path>/app/src/main/res/layout/activity_main.xml:9: AAPT: error: attribute layout_behaviour (aka com.example.testlayout:layout_behaviour) not found.
error: failed linking file resources.
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
/<Stripped Path>/app/src/main/res/layout/activity_main.xml:9: AAPT: error: attribute layout_behaviour (aka com.example.testlayout:layout_behaviour) not found.
error: failed linking file resources.
to...@gmail.com <to...@gmail.com> #3
If it's Gradle issuse, then I tried with 5.2.1-all and same happens.
Description
So R8 automatically add rules when it recognize some reflection calls to keep the classes / annotations that's a neat feature.
But for example:
Moshi use reflection to see if metadata are kept or not, and this check does force a keep when it was not intended to.
Is there something already existing to indicate to R8 that this specific Class.forName call should be ignored when building it rules?