username_987
Member
I got in google play console apps using B4XGifView displaying:
And after I updated the B4xgifview library as per: https://www.b4x.com/android/forum/threads/b4x-b4xgifview-cross-platform-animated-gif-view.118550
And I made a new app release for the apps. Now I get the following error message in all effected apps:
No more getting this part:
But still there's a 16 kb page size error shown above.
Google says to update build.gradle, yet B4A doesn't use it
developer.android.com
B4X:
Does not support 16 KB
Hide detail
Learn more
Uncompressed native libraries are not zip aligned for 16 KB within your app. To resolve this, fix your AGP configuration.
Libraries that do not support 16 KB:
base/lib/arm64-v8a/libpl_droidsonroids_gif.so
base/lib/x86_64/libpl_droidsonroids_gif.so
And after I updated the B4xgifview library as per: https://www.b4x.com/android/forum/threads/b4x-b4xgifview-cross-platform-animated-gif-view.118550
And I made a new app release for the apps. Now I get the following error message in all effected apps:
B4X:
Uncompressed native libraries are not zip aligned for 16 KB within your app. To resolve this, fix your AGP configuration.
No more getting this part:
B4X:
Libraries that do not support 16 KB:
base/lib/arm64-v8a/libpl_droidsonroids_gif.so
base/lib/x86_64/libpl_droidsonroids_gif.so
But still there's a 16 kb page size error shown above.
Google says to update build.gradle, yet B4A doesn't use it
B4X:
Update the packaging of your shared libraries
We recommend that you upgrade to AGP version 8.5.1 or higher and use uncompressed shared libraries.
AGP version 8.5.1 or higher
16 KB devices require apps that ship with uncompressed shared libraries to align them on a 16 KB zip-aligned boundary. To do this, you need to upgrade to Android Gradle Plugin (AGP) version 8.5.1 or higher. Refer to the Android Gradle plugin Upgrade Assistant section for details on the upgrade process.
AGP version 8.5 or lower
Note: In AGP version 8.3 to 8.5, apps are 16 KB aligned by default. However, bundletool does not zipalign APKs by default. So, the app may appear to work, but when built from a bundle in Play, it won't install.
If you can't upgrade AGP to version 8.5.1 or higher, then the alternative is to switch to use compressed shared libraries. Update your Gradle configuration to have Gradle compress your shared libraries when packaging your app to avoid app installation issues with unaligned shared libraries.
GroovyKotlin
In your build.gradle file, add the following option:
android {
...
packagingOptions {
jniLibs {
useLegacyPackaging true
}
}
}