iammert / RadioPlayerService

Android service library which uses AAC Player. Ready to use Radio Player Service.
254 stars 90 forks source link

Fetal Crash on Marshmallow #49

Open suman-tms opened 7 years ago

suman-tms commented 7 years ago

Please help me to fix this issue! Exception java.lang.UnsatisfiedLinkError: dlopen failed: x/data/app/com.radio/lib/arm/libaacdecoder.so: has text relocations java.lang.Runtime.loadLibrary (Runtime.java:372) java.lang.System.loadLibrary (System.java:1076) com.spoledge.aacdecoder.Decoder.loadLibrary (Decoder.java:187) com.spoledge.aacdecoder.Decoder.create (Decoder.java:221) com.spoledge.aacdecoder.Decoder.create (Decoder.java:198) com.spoledge.aacdecoder.AACPlayer.createDecoder (AACPlayer.java:508) com.spoledge.aacdecoder.MultiPlayer.createDecoder (MultiPlayer.java:91) com.spoledge.aacdecoder.AACPlayer. (AACPlayer.java:130) com.spoledge.aacdecoder.MultiPlayer. (MultiPlayer.java:81) co.mobiwise.library.RadioPlayerService.getPlayer (RadioPlayerService.java:290) co.mobiwise.library.RadioPlayerService.onCreate (RadioPlayerService.java:145) android.app.ActivityThread.handleCreateService (ActivityThread.java:2884) android.app.ActivityThread.access$1900 (ActivityThread.java:153) android.app.ActivityThread$H.handleMessage (ActivityThread.java:1434) android.os.Handler.dispatchMessage (Handler.java:102) android.os.Looper.loop (Looper.java:148) android.app.ActivityThread.main (ActivityThread.java:5442) java.lang.reflect.Method.invoke (Method.java) com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:738) com.android.internal.os.ZygoteInit.main (ZygoteInit.java:628)

kelvinpompey commented 7 years ago

I got around this problem by following the instructions here: https://medium.com/mobiwise-blog/unsatisfiedlinkerror-problem-on-some-android-devices-b77f2f83837d#.c1vlmowal

Then setting the following values in build.gradle: compileSdkVersion 22 buildToolsVersion '22.0.1'

defaultConfig {
    minSdkVersion 15
    targetSdkVersion 22
}

It may very well be that the first link didn't have an effect but I haven't tested that.

ghost commented 7 years ago

This issue still retain , kindly fix this