1

I am trying to build the code present at the following location-

https://scanbotsdk.github.io/documentation/barcode-scanner-sdk/xamarin/

I am trying to compile the solution 'ScanbotBarcodeSDKFormsExample.sln' on Visual Studio 2019 and it's giving me errors like (Attached screenshot)-

resource attr/flow_horizontalSeparator (aka io.scanbot.example.sdk.barcode.xamarin.forms:attr/flow_horizontalSeparator) not found

resource attr/flow_verticalSeparator (aka io.scanbot.example.sdk.barcode.xamarin.forms:attr/flow_verticalSeparator) not found

A couple of forums suggest changing the version of 'Xamarin.Android.Support.Constraint.Layout' but that is not working for me rather it's throwing an error stating the resource is used by another process. Any leads on this would be highly appreciated.

enter image description here

enter image description here

12
  • update xamarin forms nuget and target with latest SDK. Commented Oct 13, 2020 at 17:10
  • @Morse- Thanks for your quick response but its still giving the same errors. I have updated 'Xamarin.Forms' to latest available (4.8.0.1534) and 'ScanbotBarcodeSDK.Xamarin.Forms' is anyways targeting the latest version '1.0.2'. Any other inputs please on this? Commented Oct 14, 2020 at 4:13
  • Seems like you did not update nuget for all projects. I will check once I get a chance.if bar code scanning is desired may I suggest zxing forms and the error message suggests some files getting trimmed from the native binding library. You will have to contact that team for the same. Commented Oct 14, 2020 at 5:04
  • @Morse- Thanks for your inputs. I was just wondering if you have used zxing forms and if you think that would be better to use? Would be great if you could share the sample code if you have used it. I have put a comment on the github with same query hoping they reply soon. Commented Oct 14, 2020 at 5:42
  • @aroraarjita Hi, do you mean this sample project from your shared link? If so, I have tested that, and it works.i.sstatic.net/Cgde2.png Commented Oct 14, 2020 at 9:48

1 Answer 1

1

For the above error (1st screenshot)- Update Xamarin.Android.Support.Constraint.Layout to 1.1.2 and then it might bring a Syste.IO.Exception 'File is being used by another process'(2nd screenshot above) so to fix this you can run processexp.exe (process explorer) as administrator and kill the process tree for devenv.exe and restart the visual studio 2019. Then, build the solution and it should work sucessfully.

Actually what's happening is it is locking the process, may be a bug with visual studio so killing the process tree helps.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.