I’m getting a strange build error when calling the method openDrawer() on an Android DrawerLayout:
E: Indirectly used type "androidx.customview.widget.Openable" is defined in an unreferenced assembly ()
You can find the code for the open source DrawerLayout on Github and see that it implements Openable, which is defined in a DrawerLayout dependency available in androidx.customview:customview
public class DrawerLayout extends ViewGroup implements Openable
Even if I include androidx.customview:customview in my project as CopyLocal, I still get the same error. I also am getting this error anywhere from .2587 to .2606.
This happens when your code uses a.jar and a.jar uses a type from b.jar, but you domino have a reference to b.jar in your own project. Could this be the case here?
Ah ok I found something. If I remove the reference to appcompat from the sample project then it builds correctly. AppCompat shows that it depends on androidx.drawerlayout but does not show androidx.customview as a dependency within that. Perhaps the error is resulting from seeing androidx.customview missing as a dependency in the version of drawerlayout that is inside of appcompat?