Adding jar file to cocossharp android project

I want to add jar file to my android project. I have added binding java library project to my existing project.
But I am unable to add reference of it to my project. It gives me error "Incompatible target freamework : MonoAndroid Version v5.0"

Answers

  • RamiTabbaraRamiTabbara AUMember, Xamarin Team Xamurai

    Hi Vishal,

    Are you sure your project that you want to add the reference to is a pure Android project, and not a Mobile PCL project?

    Additionally, if you want to use native code, then you're going to need a Xamarin.Indie licence or higher. So if you're using Starter, then this won't work.

  • vishalwarangvishalwarang INMember

    Hi RamiTabbara,

    Thanks for you reply..
    It is Mobile PCL project. It is .jar file downloaded from internet and I want to use in android project. And I am using Xamarin INDIE version.

  • RamiTabbaraRamiTabbara AUMember, Xamarin Team Xamurai

    Hi Vishal,

    You can only add the Binding java library to an Android project. If you were using the CocosSharp project templates to create your Mobile solution, then aside from the PCL project, they'll also be iOS and Android projects, so make sure you're adding the Binding java library to the right project.

Sign In or Register to comment.