Its started working after making changes suggested by jonpryor
.NET MAUI error after binding android library (.aar)
Nikhil Sathawara
0
Reputation points
I am using android library called "autoreplyprint.aar" , this library contains another.jar file called "jna-4.5.1.jar".
I have used following code to bind it in my MAUI project,
<ItemGroup Condition="$(TargetFramework.Contains('-android'))">
<LibraryProjectZip Include="Libs/autoreplyprint.aar" />
</ItemGroup>
After binding the .aar, I am getting many auto generated files which is expected but most of them have errors.
One of the errors is as following which is related to "jna-4.5.1.jar"
Error : 'JNIEnv' does not contain a definition for 'GetString'
Developer technologies | .NET | .NET MAUI
4,152 questions