enter image description here

Hello.

Created a class library project (portable for iOS, Android and Windows) in the Visual Studio 2015 Community. Written in C #.

Screenshot for clarity.

After building such a project in Debug / Release, 2 files * .dll and * .pdb and another dll from Newsoft.JSON are dropped for deserialization.

Will this library work under Android Studio or is it sharpened only under Visual Studio and Xamarin? If so, how to connect such a project (or how to build correctly) so that it works and is used in a project on Android Studio. enter image description here

If in my project there are some not such settings, I would be grateful if you tell me how to set up the project for my purposes. I would like the library to work under the following platforms (projects): Android (Android Studio), Windows Form, WPF, Windows Phone, UWP.

PS: There is no need for ASP.NET, it is added to the target itself due to the similarity in the API. IOS support is not pursued, but if it can be added with little effort, then why not.

    1 answer 1

    Android Studio is designed exclusively for native development and works only with Java and other JVM languages, with the appropriate plug-in for Android.

    Portable class libraries are .NET technology and there is no way to integrate it with native Java code using Android Studio.

    However, if you use Xamarin, then you do not need Android Studio to create Android applications. You can create C # applications for all platforms using only Visual Studio (or Xamarin Studio). Accordingly, other people will also be able to use your library, but only using the .NET Framework or Xamarin, but not Java and Android Studio.

    • the trouble is that I am writing a library .. and under Windows. Under Android, another person writes and he works in Android Studio. = (Visual studio and Xamarin allow you to write under Android on C # like. And you can write them in the same Java? - MrModest
    • one
      @ Mr.Modest Yes, Visual studio and Xamarin allow writing under Android in C #. Actually, it is for this purpose that Xamarin is needed to write in one language at once under several platforms. If you want to select a common code for Android and Windows project, then you have several options. 1) Write everything in Java, including the desktop application. 2) To write everything on .NET, then your Android developer will have to switch to using Xamarin 3) To write common C / C ++ code and compile the library under ARM using Android NDK (you hardly need it). - Agrgg