-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App crashes invoking method in package #9798
Comments
Can you post the logcat containing the crash information?
|
Hi Jonathan, below the requested log. Crash reported at line 581. |
This message:
sounds like you are not using the library properly and you need to ensure you are doing what it requires. I would suggest searching for the error message for guidance, like: |
Android framework version
net9.0-android
Affected platform version
VS 2022 17.13.0
Description
Application uses an external library.
When the library is referenced from the main project eveythong works.
When the library is used as package a runtime error occurs
Steps to Reproduce
BarcodeDemo.zip
The attached demo project contains a BarcodeDemo app, which reference a ZXing.Mobile package. The package is served from the local directory LocalLibs.
The app has a single activity with a single button "Scan", which should bring up a scanning activity. The scanning activity use the device camera to read a barcode and decode it using ZXing.Net. The library is my porting to Net 9 of the no-longer mantained https://github.com/Redth/ZXing.Net.Mobile
If you run the app on an Android 5 or 6, pressing the "Scan" button throws an unhandled exception at row 60 of ZxingActivity.cs. Row 60 was recently added to handle edge-to-edge as required by Android 15.
Did you find any workaround?
The app works correctly if:
Working configuration
Failing configuration
Relevant log output
The text was updated successfully, but these errors were encountered: