Android Question Build App Bundle error

stp

Active Member
Licensed User
Longtime User
Try to build App Bundle and get that error:
B4X:
Parsing code.    (0.52s)
    Java Version: 19
Building folders structure.    (0.12s)
Running custom action.    (0.06s)
Compiling code.    (0.67s)
Compiling layouts code.    (0.03s)
Organizing libraries.    (0.00s)
    (AndroidX SDK)
Compiling resources    (0.06s)
Linking resources    (0.96s)
    build tools: 36.0.0, android jar: android-36
Compiling generated Java code.    (0.08s)
Finding libraries that need to be dexed.    (0.02s)
Dex code    (1.84s)
Dex merge    (9.67s)
Copying libraries resources    (7.81s)
Building app bundle    Error
[BT:1.18.1] Error: Files under lib/ must have .so extension, found 'lib/armeabi-v7a/gdb.setup'.
com.android.tools.build.bundletool.model.exceptions.InvalidBundleException: Files under lib/ must have .so extension, found 'lib/armeabi-v7a/gdb.setup'.
    at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
    at com.android.tools.build.bundletool.validation.BundleFilesValidator.validateModuleFile(BundleFilesValidator.java:102)
    at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModulesUsingSubValidator(ValidatorRunner.java:117)
    at com.android.tools.build.bundletool.validation.ValidatorRunner.lambda$validateBundleModules$7(ValidatorRunner.java:89)
    at com.google.common.collect.ImmutableList.forEach(ImmutableList.java:422)
    at com.android.tools.build.bundletool.validation.ValidatorRunner.validateBundleModules(ValidatorRunner.java:88)
    at com.android.tools.build.bundletool.validation.BundleModulesValidator.validate(BundleModulesValidator.java:81)
    at com.android.tools.build.bundletool.commands.BuildBundleCommand.execute(BuildBundleCommand.java:232)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:80)
    at com.android.tools.build.bundletool.BundleToolMain.main(BundleToolMain.java:56)

What does it mean: Error: Files under lib/ must have .so extension, found 'lib/armeabi-v7a/gdb.setup ??
 

stp

Active Member
Licensed User
Longtime User
Which libraries are you using? This is a debug file that should be removed from the AAR (or Jar). It comes from a library with a native (.so) object.
libs.jpg

Hi Erel, That are the libs i use
 
Upvote 0

stp

Active Member
Licensed User
Longtime User
Probably vlcb4a. Create a new project with only that library and try it.

You can open its jar/aar files with 7zip and delete the debug file.
I renamed it to zip so i can open and check. But i dont know what to delete here the dir structure
B4X:
+---assets
|       libcompat.7.so
|       
+---com
|   \---tillekesoft
|       \---vlcb4a
|               MediaControllerWrapper$1.class
|               MediaControllerWrapper$2.class
|               MediaControllerWrapper.class
|               VideoViewWrapper$1.class
|               VideoViewWrapper$2.class
|               VideoViewWrapper$3.class
|               VideoViewWrapper$4.class
|               VideoViewWrapper.class
|               
+---lib
|   \---armeabi-v7a
|           gdb.setup
|           gdbserver
|           libanw.10.so
|           libanw.13.so
|           libanw.14.so
|           libanw.18.so
|           libanw.21.so
|           libcompat.7.so
|           libiomx.10.so
|           libiomx.13.so
|           libiomx.14.so
|           libvlcjni.so
|           
\---org
    \---videolan
        \---libvlc
            \---media
                    ExtMediaPlayerControl$OnHiddenListener.class
                    ExtMediaPlayerControl$OnShownListener.class
                    ExtMediaPlayerControl.class
                    VideoView$1.class
                    VideoView$2.class
                    VideoView$3.class
                    VideoView$4.class
                    VideoView.class
 
Upvote 0

teddybear

Well-Known Member
Licensed User
As Erel said, you don't need to rename it, just open it with 7zip and delete the gdb files with right click
 
  • Like
Reactions: stp
Upvote 0

stp

Active Member
Licensed User
Longtime User
As Erel said, you don't need to rename it, just open it with 7zip and delete the gdb files with right click
yes, i unziped to print the tree view. I deleted the 2 files
gdb.setup
gdbserver
now is ok
B4X:
........
........
.....
Dex merge    (13.33s)
Copying libraries resources    (6.70s)
Building app bundle    (5.30s)
Signing AAB file    Error
Private signing key not set

must only sign the app when is ready to publish.
Thank you
 
Upvote 0
Top