Android Question where I can copy to .so file

bjfhs

Active Member
Licensed User
Longtime User
I have a sdk from the third party include .jar and .so
I use AdditionalJar to import .jar,but where I can put the .so file?
B4X:
#AdditionalJar: jcore-android_v1.1.0
#AdditionalJar: jpush-android_v3.0.1
when debug:java.lang.UnsatisfiedLinkError: Couldn't load jcore110 from loader
jcore110 is the jcore110.so
 

Attachments

  • screenshot.jpg
    7.1 KB · Views: 304
  • jcore-android_v1.1.0.jar
    290.8 KB · Views: 323
  • jpush-android_v3.0.1.jar
    145.4 KB · Views: 289
  • libs.zip
    41.5 KB · Views: 323
Last edited:

bjfhs

Active Member
Licensed User
Longtime User
Thank Erel.
The .so file not in the .jar file. when I put in the .so in .jar like SQLCiper.jar,Error still exists.

The SDK provided by the third party,he does'nt tell me how the library loads the so files,but he tell me an example
libs/jcore-android.v1.x.y.jar
libs/jpush-android_v3.x.y.jar
libs/(cpu-type)/libjcore1xy.so

so I put the .so file \Objects\libs ,and made it readonly ,but the same error: Couldn't load jcore110 from loader
 
Last edited:
Upvote 0

bjfhs

Active Member
Licensed User
Longtime User
Are you sure that it is libs and not lib?

You should put in the jar file in the correct folder. Putting it under Objects folder will not help.
I have tested lib and libs,and all I can find in the forums,but i failed.
I open the .jar with winrar,and add a new folder lib(or libs),and copy .so in it, .jar is in the folder AdditionalLibraries.

the error:java.lang.UnsatisfiedLinkError: Couldn't load jcore110 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/bjfhs.guo.com-2.apk"],nativeLibraryDirectories=[/data/app-lib/bjfhs.guo.com-2, /system/lib]]]: findLibrary returned null
 
Upvote 0

bjfhs

Active Member
Licensed User
Longtime User
The SDK document show that you only need copy libjcore110.so to cpu-type folder of project, and all the function your need in the .jar file.
 

Attachments

  • 截图1.png
    78.4 KB · Views: 332
Last edited:
Upvote 0

bjfhs

Active Member
Licensed User
Longtime User
I have tried to make it work for one week,but I failed.
The B4A source of mine in the attached,and all the .jar and libs in the first thread.
I need somebody to help me ,looking forward to your reply.Thanks.
 

Attachments

  • pushTest.zip
    22.9 KB · Views: 343
Upvote 0

bjfhs

Active Member
Licensed User
Longtime User
Creating libraries requires Java knowledge. If you aren't able to solve it then you can make a post in the job offers forum.

@Erel
Do you think the .jar and .so of the SDK not libraries ? I need bulid an new one from it?
 
Upvote 0

bjfhs

Active Member
Licensed User
Longtime User
Thank DonManfred and Erel, I will try to write a wrapper.
But why I can't use #AdditionalJar? where and when I can use #AdditionalJar?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…