Fixed
Status Update
Comments
tn...@google.com <tn...@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.
Description
Lint already supports "graceful" handling of issues that have been deleted. However, this is hardcoded for the built-in checks; there is no way for an issue registry from a third party to specify its own issue id's for deleted issues.
(Telling lint about deleted issues is important such that lint gracefully handles the case where these issue id's are referenced in lint.xml files, in baselines, and so on).
In some cases you also want to rename issues (for example, when combining two issues into one). We should allow you to specify these aliases on the issue registration, and then automatically handle this gracefully. In this case we don't want to treat the old name as deleted; we want to treat it as an alias for the new name such that baseline entries are matched up exactly, such that @Suppress annotations work as expected, and so on.