Coder Social home page Coder Social logo

Comments (12)

smstuebe avatar smstuebe commented on August 11, 2024

Is it really throwing this exception (= app crashes) or just logging it or is just the debugger notifying you that this exception has been thrown?
Spass.initialize is surrounded by a try-catch. It would be weird.

from xamarin-fingerprint.

ranjitrock avatar ranjitrock commented on August 11, 2024

The app is not crashing but it is not returning the enum value to proceed further.
I ran the above code in Debug mode.
Also When i run on Release mode i encountered "LinkAssemblies task failed unexpectedly" I am using xamarin studio.
LinkAssemblies Error message:

C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(5,5): Error MSB4018: The "LinkAssemblies" task failed unexpectedly. Xamarin.Android.XamarinAndroidException: error XA2006: Reference to metadata item 'Android.Hardware.Fingerprints.FingerprintManager/AuthenticationCallback' (defined in 'Plugin.Fingerprint, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null') from 'Plugin.Fingerprint, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null' could not be resolved. ---> Mono.Cecil.ResolutionException: Failed to resolve Android.Hardware.Fingerprints.FingerprintManager/AuthenticationCallback at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference) at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference) at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference) at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference) at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type) at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly) at Mono.Linker.Steps.MarkStep.Initialize() at Mono.Linker.Steps.MarkStep.Process(LinkContext context) at Mono.Linker.Pipeline.Process(LinkContext context) at MonoDroid.Tuner.Linker.Process(LinkerOptions options, LinkContext& context) at Xamarin.Android.Tasks.LinkAssemblies.Execute() --- End of inner exception stack trace --- at Xamarin.Android.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args) at Xamarin.Android.Tasks.LinkAssemblies.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() (MSB4018) (fingerprint)

from xamarin-fingerprint.

ranjitrock avatar ranjitrock commented on August 11, 2024

I have solved the linker error - I had to modify the build settings but still i am not getting any enum from GetAvailabilityAsync() from my android application.

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

Do you build against a Android SDK >= 23?

from xamarin-fingerprint.

ranjitrock avatar ranjitrock commented on August 11, 2024

target version= 19

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

I mean compile Sdk Version.

from xamarin-fingerprint.

ranjitrock avatar ranjitrock commented on August 11, 2024

I am using Xamarin studio IDE . i checked the entire project settings there are no options to change compile sdk version. I even checked csproj file.

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

In the project file it should be here (example): https://github.com/smstuebe/xamarin-fingerprint/blob/master/src/Plugin.Fingerprint.Android/Plugin.Fingerprint.Android.csproj#L18

I'll look up where to set it in Xamarin Studio, when I'm at home.

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

This is the Target Framework. Should be >= 6.0

image

This must be set to automatic or something >= API 23
image

from xamarin-fingerprint.

ranjitrock avatar ranjitrock commented on August 11, 2024

Finally it it is working.I changed the target version 23 .I am able to get the enum value.
Here are the logs from logcat.
12-01 09:40:43.881: W/SamsungFingerprintImplementation(16876): com.samsung.android.sdk.SsdkUnsupportedException: This device does not provide FingerprintService. 12-01 09:40:43.881: W/SamsungFingerprintImplementation(16876): at com.samsung.android.sdk.pass.Spass.initialize(Unknown Source) 12-01 09:40:43.901: D/fingerprint(16876): Availability enum NoApi

Thanks!
Really appreciate it!

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

Ok. I'll document this and look up if it's possible to check the compile version at runtime to throw a meaningful exception.

from xamarin-fingerprint.

smstuebe avatar smstuebe commented on August 11, 2024

Documentation added. Can't throw an exception, because the type load exception will be thrown when the lib gets loaded.

from xamarin-fingerprint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.