Java Binding Abstract class not being generated

前端 未结 2 1947
旧时难觅i
旧时难觅i 2020-12-17 05:35

Error CS0234: The type or namespace name IBitmap\' does not exist in the namespaceCom.Sushi.Hangover\'. Are you missing an assembly reference?

相关标签:
2条回答
  • 2020-12-17 06:35

    In your binding library inside of the Transforms/Metadata.xml file you can change the visibility by adding the following line:

    <attr path="/api/package[@name='com.sushi.hangover']/interface[@name='IBitmap']" name="visibility">public</attr>
    

    Given that the package name in Java world is com.sushi.hangover and interface name is IBitmap.

    You can read some more about the format of attr in the GAPI mono documentation. There is also some nice bindings documentation in the Xamarin Docs.

    0 讨论(0)
  • 2020-12-17 06:36

    I've written a smallish guide on this topic that might help in certain areas: https://gist.github.com/JonDouglas/dda6d8ace7d071b0e8cb

    In short, you could potentially try changing the visibility like @Cheesebaron has mentioned already: https://gist.github.com/JonDouglas/dda6d8ace7d071b0e8cb#class-visibility (Replace /class with interface or read the common paths)

    Otherwise you can potentially try to add the node from scratch: https://gist.github.com/JonDouglas/dda6d8ace7d071b0e8cb#adding-types

    For a more exact answer, I believe we would need to see the respective .jar/.aar and the current Bindings project.

    0 讨论(0)
提交回复
热议问题