BarcodeScanner.Mobile icon indicating copy to clipboard operation
BarcodeScanner.Mobile copied to clipboard

libbarhopper_v3.so and libimage_processing_util_jni.so is failing to support Android requirement for 16kB Memory page size

Open branomalovec opened this issue 4 months ago • 8 comments

We are happily using your package in out maui app but there are new requirements from Google for memory page size. https://android-developers.googleblog.com/2025/05/prepare-play-apps-for-devices-with-16kb-page-size.html

We got list of libraries that are not compatible, one of them is libbarhopper_v3.so that came from your package i guess.

Any chance to fix it until 1.11.2025 when is official deadline?

branomalovec avatar Sep 02 '25 08:09 branomalovec

Also libimage_processing_util_jni.so is probably coming from your package and have same issue.

branomalovec avatar Sep 02 '25 09:09 branomalovec

It looks have to upgrade to at least .NET9 for android 35. Could you try package version 9.0.1 to see if it works? It should be working in 16KB simulator but I do not get chance to release any app to play store to verify.

JimmyPun610 avatar Sep 04 '25 12:09 JimmyPun610

It's fixed!

Sviat751 avatar Sep 05 '25 07:09 Sviat751

I tried to upgrade to package version 9.0.1 but i am getting following errors:

Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.Runtime.Ktx 2.8.7.3 requires Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.7.3 && < 2.8.8) but version Xamarin.AndroidX.Lifecycle.Runtime 2.9.2.1 was resolved.

Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.ViewModel.Ktx 2.8.7.3 requires Xamarin.AndroidX.Lifecycle.ViewModel (>= 2.8.7.3 && < 2.8.8) but version Xamarin.AndroidX.Lifecycle.ViewModel 2.9.2.1 was resolved.

Detected package version outside of dependency constraint: Xamarin.AndroidX.SavedState.SavedState.Ktx 1.2.1.16 requires Xamarin.AndroidX.SavedState (>= 1.2.1.16 && < 1.2.2) but version Xamarin.AndroidX.SavedState 1.3.1.1 was resolved.

Detected package version outside of dependency constraint: Xamarin.AndroidX.Fragment.Ktx 1.8.6.1 requires Xamarin.AndroidX.Fragment (>= 1.8.6.1 && < 1.8.7) but version Xamarin.AndroidX.Fragment 1.8.8.1 was resolved.

Detected package version outside of dependency constraint: Xamarin.AndroidX.Lifecycle.Runtime.Ktx.Android 2.8.7.3 requires Xamarin.AndroidX.Lifecycle.Runtime (>= 2.8.7.3 && < 2.8.8) but version Xamarin.AndroidX.Lifecycle.Runtime 2.9.2.1 was resolved.

deepamhatre avatar Sep 12 '25 12:09 deepamhatre

@deepamhatre that just means your versions are more recent than required.

mos379 avatar Sep 14 '25 13:09 mos379

but this is what V9.0.1 has upgraded to. How to resolve this?

deepamhatre avatar Sep 15 '25 06:09 deepamhatre

but this is what V9.0.1 has upgraded to. How to resolve this?

those are not errors, so don't need to be resolved

mos379 avatar Sep 15 '25 07:09 mos379

These are the errors, not the warnings and not allowing me to build the android app. However, I managed to get rid of these errors by upgrading the below transitive packages to their lates versions:

Image

With these changes the android app worked fine and also got rid of the 16 KB page size warning.

Now when I am trying to build the .NET MAUI iOS app with all the above changes the build is infinitely pausing at below:

Target _XamarinBuildDownloadCore: 1> Assembly loaded during TaskRun: Xamarin.Build.Download, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (location: C:.....nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.dll, MVID: 2e6281bd-9798-47ee-9ea8-82f214394218, AppDomain: [Default]) 1> Using "XamarinDownloadArchives" task from assembly "C:....nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.dll". 1> Task "XamarinDownloadArchives" 1> Assembly loaded during TaskRun (Xamarin.Build.Download.XamarinDownloadArchives): Microsoft.Win32.Registry, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (location: C:....nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Microsoft.Win32.Registry.dll, MVID: f165d2aa-905d-4dd4-8e4a-317d747f8224, AppDomain: [Default]) 1> Extracting C:....\AppData\Local\XamarinBuildDownloadCache\MLKCommon-12.0.0.tgz to C:\Users\Deepa-ardent\AppData\Local\XamarinBuildDownloadCache\MLKCommon-12.0.0

also tried to downgrade the package to V8.0.0.1 but this is not letting me to install any lower version and gives following error

Could not find a part of the path 'C:\Users....nuget\packages\xamarin.firebase.ios.core\8.10.0.1\lib\xamarinios10\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_i386_x86_64-simulator\GoogleUtilitiesComponents.framework\Headers\GoogleUtilitiesComponents-umbrella.h'.

It is accepting only latest version V9.0.1. Please help me with this so that I can build the iOS app successfully.

deepamhatre avatar Sep 18 '25 07:09 deepamhatre