Android Question Creating a library in Eclipse

Hi
I am designing a library with Eclipse which contains .so files in folders as shown in the image.
When I compile with slc, the library is built correctly but the architecture of each cpu is not included in the project. Please advise what to do in b4a when a file is added to the libs folder in Eclipse

1742266585404.png
 

Attachments

  • 1742266573283.png
    1742266573283.png
    56 KB · Views: 64
Post all the information you have.
Hi.
I created a library with Eclipse that includes AAR libraries.
The AAR library itself contains information like socet.co.
I don't use Gradle and on the site I looked at they suggested using the code
android.bundle.enableUncompressedNativeLibs = false now deprecated

This works for me:

android {
packagingOptions {
jniLibs.useLegacyPackaging = true
}
}
But I don't know where to add this code in b4a.

My problem is that when I get the APK version of the app it works fine but when I convert it to AAB and submit it to Google Play this library doesn't work properly anymore.

Should I add this code to the bundleconfig.json file?
Please help.
 
Upvote 0
I have a bundleconfig.json file as

{
"optimizations": {
"uncompressNativeLibraries":
{
"enabled":false
}
},

"packagingOptions": {
"jniLibs":
{
"useLegacyPackaging":true
}
},

"compression": {
"uncompressedGlob": [
"**/*.3g2",
"**/*.3gp",
"**/*.3gpp",
"**/*.3gpp2",
"**/*.aac",
"**/*.amr",
"**/*.awb",
"**/*.gif",
"**/*.imy",
"**/*.jet",
"**/*.jpeg",
"**/*.jpg",
"**/*.m4a",
"**/*.m4v",
"**/*.mid",
"**/*.midi",
"**/*.mkv",
"**/*.mp2",
"**/*.mp3",
"**/*.mp4",
"**/*.mpeg",
"**/*.mpg",
"**/*.ogg",
"**/*.png",
"**/*.rtttl",
"**/*.smf",
"**/*.wav",
"**/*.webm",
"**/*.wma",
"**/*.wmv",
"**/*.xmf"
]
}
}


I changed it but when I run it, I get an error

[BT:1.5.0] Error: The file 'D:\Program Files\Anywhere Software\B4A13\bundleconfig.json' is not a valid BundleConfig JSON file.
com.android.tools.build.bundletool.model.exceptions.InvalidCommandException: The file 'D:\Program Files\Anywhere Software\B4A13\bundleconfig.json' is not a valid BundleConfig JSON file.
at com.android.tools.build.bundletool.model.exceptions.InternalExceptionBuilder.build(InternalExceptionBuilder.java:57)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.parseBundleConfigJson(BuildBundleCommand.java:358)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.lambda$fromFlags$0(BuildBundleCommand.java:189)
at java.base/java.util.Optional.ifPresent(Optional.java:178)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.fromFlags(BuildBundleCommand.java:189)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:71)
at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:47)
Caused by: com.google.protobuf.InvalidProtocolBufferException: Cannot find field: packagingOptions in message android.bundle.BundleConfig
at com.google.protobuf.util.JsonFormat$ParserImpl.mergeMessage(JsonFormat.java:1313)
at com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1273)
at com.google.protobuf.util.JsonFormat$ParserImpl.merge(JsonFormat.java:1135)
at com.google.protobuf.util.JsonFormat$Parser.merge(JsonFormat.java:351)
at com.android.tools.build.bundletool.commands.BuildBundleCommand.parseBundleConfigJson(BuildBundleCommand.java:352)
... 5 more

I received


1742405322229.png
 
Upvote 0
Top