Android Question aacdecoder-android-0.8.jar

scsjc

Well-Known Member
Licensed User
Longtime User
Hello,
i use aacdecoder-android-0.8.jar to play stream audio from url, but some times i have this error:


B4X:
--------- beginning of crash
--------- beginning of main
java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.newInstance(Native Method)
    at anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(JavaObject.java:90)
    at radiofm.com.srvplayer._service_create(srvplayer.java:356)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
    at radiofm.com.srvplayer.onCreate(srvplayer.java:54)
    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3095)
    at android.app.ActivityThread.-wrap4(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1579)
    at android.os.Handler.dispatchMessage(Handler.java:111)
    at android.os.Looper.loop(Looper.java:207)
    at android.app.ActivityThread.main(ActivityThread.java:5777)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/mnt/expand/f6d7d8cb-7d82-4aad-9c60-ad54a37f613e/app/radiofm.com-1/base.apk"],nativeLibraryDirectories=mnt/expand/f6d7d8cb-7d82-4aad-9c60-ad54a37f613e/app/radiofm.com-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libaacdecoder.so"
    at java.lang.Runtime.loadLibrary(Runtime.java:367)
    at java.lang.System.loadLibrary(System.java:1076)
    at com.spoledge.aacdecoder.Decoder.loadLibrary(Decoder.java:187)
    at com.spoledge.aacdecoder.Decoder.create(Decoder.java:221)
    at com.spoledge.aacdecoder.Decoder.create(Decoder.java:198)
    at com.spoledge.aacdecoder.AACPlayer.createDecoder(AACPlayer.java:508)
    at com.spoledge.aacdecoder.MultiPlayer.createDecoder(MultiPlayer.java:91)
    at com.spoledge.aacdecoder.AACPlayer.<init>(AACPlayer.java:130)
    at com.spoledge.aacdecoder.MultiPlayer.<init>(MultiPlayer.java:81)
    at com.spoledge.aacdecoder.MultiPlayer.<init>(MultiPlayer.java:68)
    ... 16 more
 
Last edited:

Pendrush

Well-Known Member
Licensed User
Longtime User
PS.
You can also use ExoPlayer as streaming player. But in some cases you need to limit minsdk to 21, because Shoutcast server below version 2.4 have implemented ICY (http/0.9) protocol and any device with Android < 5.0 will not be able to play that stream (as you need handler for icy:// handler exist in aacdecoder-android-0.8.jar, but not in ExoPlayer).
 
Upvote 0

scsjc

Well-Known Member
Licensed User
Longtime User

Hello,
i use that file, but iniside don't compiled for arm64-v8a

Sin-título-1.jpg
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
Library is almost 3 years old and abandoned also before 3 years. arm64-v8a don't exist in this lib. ExoPlayer is faster and more stable alternative.
 
Upvote 0
Top