简体   繁体   English

java.lang.UnsatisfiedLinkError…找不到“ libaacdecoder.so”

[英]java.lang.UnsatisfiedLinkError…couldn't find “libaacdecoder.so”

so I've spent the last 3 days going crazy trying to figure out what is causing the following error on my streaming radio app. 因此,过去三天我一直在疯狂尝试找出导致流式广播应用程序出现以下错误的原因。

FATAL EXCEPTION: main

Process: ca.threeohsixmedia.radio, PID: 24294

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/ca.threeohsixmedia.radio-1/base.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_dependencies_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_0_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_1_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_2_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_3_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_4_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_5_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_6_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_7_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_8_apk.apk", zip file "/data/app/ca.threeohsixmedia.radio-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/ca.threeohsixmedia.radio-1/lib/arm64, /data/app/ca.threeohsixmedia.radio-1/base.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_dependencies_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_0_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_1_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_2_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_3_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_4_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_5_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_6_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_7_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_8_apk.apk!/lib/arm64-v8a, /data/app/ca.threeohsixmedia.radio-1/split_lib_slice_9_apk.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]] couldn't find "libaacdecoder.so"                                                                           
at java.lang.Runtime.loadLibrary0(Runtime.java:984)                                                                              
at java.lang.System.loadLibrary(System.java:1562)                                                                                                         
at com.spoledge.aacdecoder.Decoder.loadLibrary(Decoder.java:188)                                                                              
at com.spoledge.aacdecoder.Decoder.create(Decoder.java:222)                                                                              
at com.spoledge.aacdecoder.Decoder.create(Decoder.java:199)                                                                              
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 co.mobiwise.library.radio.RadioPlayerService.getPlayer(RadioPlayerService.java:424)                                                                              
at co.mobiwise.library.radio.RadioPlayerService.onCreate(RadioPlayerService.java:238)                                                                              
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3192)                                                                              
at android.app.ActivityThread.-wrap5(ActivityThread.java)                                                                              
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1568)                                                                              
at android.os.Handler.dispatchMessage(Handler.java:102)                                                                              
at android.os.Looper.loop(Looper.java:154)                                                                              
at android.app.ActivityThread.main(ActivityThread.java:6121)                                                                              
at java.lang.reflect.Method.invoke(Native Method)                                                                              
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)                                                                              
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

The strange thing is that the app works fine in the android studio Google Pixel emulator but not on the actual Google Pixel hardware. 奇怪的是,该应用程序可以在android studio Google Pixel模拟器中正常运行,但不能在实际的Google Pixel硬件上正常运行。 All my files are in the right location. 我所有的文件都放在正确的位置。

I tried this solution and many others with no luck. 我尝试了这种解决方案 ,但很多人都没有运气。 I have no idea where else to go from here. 我不知道从这里还能去哪里。 Any help would be appreciated. 任何帮助,将不胜感激。

One Suggestion as i also faced the same problem once. 一个建议,因为我也曾经遇到过同样的问题。 Please check that the Package name is without any space. 请检查软件包名称是否有空格。 Apart from that if you are integrating SDK then do not change the package name of supporting class if any that the developer have used. 除此之外,如果要集成SDK,则不要更改开发人员使用过的支持类的软件包名称。 You are free to change the package name of Activity Class. 您可以随意更改Activity Class的程序包名称。

Do you add this code in app/build.gradle ? 您是否将此代码添加到app / build.gradle中?

android {
    ...
    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }
    ...
}

I fixed this problem. 我解决了这个问题。 Apparently using abiFilters doesn't work if the build.gradle file is in the lib folder. 如果build.gradle文件位于lib文件夹中,则显然无法使用abiFilters。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader 找不到“liblivecamera.so.so” - java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader couldn't find "liblivecamera.so.so" Buck-java.lang.UnsatisfiedLinkError:找不到“ libjni.so”。 怎么解决呢? - Buck - java.lang.UnsatisfiedLinkError: couldn't find “libjni.so”. How to solve it? Android:java.lang.UnsatisfiedLinkError…找不到“ lib…” - Android : java.lang.UnsatisfiedLinkError…couldn't find “lib…” Android单元测试本地本机库:java.lang.UnsatisfiedLinkError:找不到这样的文件 - Android Unit Test local native library: java.lang.UnsatisfiedLinkError: couldn't find so file JNI 检测到应用程序错误 java.lang.UnsatisfiedLinkError 在 android.tools.build:Z8ED1A771BC236C287AD93C699BFDD3 中找不到“xxxxx.so”。 - JNI DETECTED ERROR IN APPLICATION java.lang.UnsatisfiedLinkError couldn't find "xxxxx.so" in android.tools.build:gradle 3.6.0 java.lang.UnsatisfiedLinkError:无法加载瘦身 - java.lang.UnsatisfiedLinkError: Couldn't load lept java.lang.UnsatisfiedLinkError: libXrender.so.1 - java.lang.UnsatisfiedLinkError: libXrender.so.1 java.lang.UnsatisfiedLinkError:无法加载andenginephysicsbox2dextension- Android - java.lang.UnsatisfiedLinkError: Couldn't load andenginephysicsbox2dextension- Android java.lang.UnsatisfiedLinkError:无法从加载器中加载findLibrary返回null - java.lang.UnsatisfiedLinkError: Couldn't load from loader findLibrary returned null java.lang.UnsatisfiedLinkError:无法从加载器加载native_sample - java.lang.UnsatisfiedLinkError: Couldn't load native_sample from loader
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM