Visual Studio Missing Java Binding Library Project Template

Stewart Basterash 96 Reputation points
2021-03-05T15:44:08.32+00:00

I have recently run into an issue with a xamarin forms development. One solution I found was to add a java library (jar) to the project and use that functionality. All the documentation on MS Visual Studio begins with... Create a new "Java Bindings Library" project.

https://learn.microsoft.com/en-us/xamarin/android/platform/binding-java-library/binding-a-jar

Currently, my freshly installed version of Visual Studio does not have this template as it is described in multiple posts. I assumed that there was something missing from the selection and installation of VS 2019. This does not appear to be the case either. And, I have looked for a template download... Can someone provide some guidance? I need to link a java library to a xamarin forms project.

Thank you in advance...

Developer technologies .NET Xamarin
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Stewart AC Basterash 26 Reputation points
    2021-03-26T20:35:21.29+00:00

    Ladies and Gentlemen... Here is the solution...

    https://github.com/xamarin/xamarin-android/issues/5714

    Read down to where the individual talks about the options dialog in Visual Studio... Uncheck the "Show all .NET Core templates in the new project dialog"

    PREFACE... UNCHECK!!!!

    1 person found this answer helpful.

  2. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,756 Reputation points
    2021-03-08T09:26:55.323+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Android Class Library selection will be shown in Project Template if we select Mobile development with .NET in installer .

    75337-2.png

    I test on the latest visual studio for windows(16.9.0) , the template shows as expected .

    75386-capture.png

    I suggest you try to repair or update Visual Studio in installer .


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  3. Markus Jessl 21 Reputation points
    2021-03-09T07:07:18.667+00:00

    Same problem on my side.

    I'm developing for an Xamarin Android app in VS 2019 and just now need to implement a 3rd party SDK which is only available as a .jar/.aar file.

    I tried with VS 2019 and VS 2019 Preview:

    75694-image.png

    75599-image.png

    However, the Android Binding Library is missing:

    75722-image.png

    Hope Microsoft can help us soon as this is currently slowing down our development.

    Thx a lot.

    0 comments No comments

  4. Arthur Nogueira 1 Reputation point
    2021-03-25T21:18:12.503+00:00

    Same problem here.

    Updated VS to version 16.9.2 yesterday and can't find the template.

    Is there any other way to import .aar files?

    0 comments No comments

  5. Eric Lira 1 Reputation point
    2021-03-26T13:44:05.547+00:00

    I just updated to VS Community 16.9.2 and the same happen to me, and it's not only the binding template that is missing, Android class library is missing too.

    I tried a repair and removing and reinstalling the mobile development tools but no luck.

    I wonder if Microsoft has removed these templates from VS Communit. Has anyone running VS Professional had this issue?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.