gpt4 book ai didi

java.lang.UnsatisfiedLinkError : nativeStart android NDK 错误

转载 作者:行者123 更新时间:2023-11-30 11:35:45 26 4
gpt4 key购买 nike

嗨,我想制作在线广播应用程序,因为我必须为此播放 aac 文件,我从 http://aacplayer-android.googlecode.com/files/aacplayer-android-r25.zip 复制了 armeabi 文件夹例如,下面是屏幕截图

enter image description here

下面的代码工作正常

  static {
System.loadLibrary("aacarray");
System.loadLibrary("mms");
}

加载库没有任何错误

但是当我开始使用这段代码从服务器播放流时

    player = new ArrayAACPlayer(ArrayDecoder.create(Decoder.DECODER_OPENCORE), this, Integer.parseInt(String.valueOf(AACPlayer.DEFAULT_AUDIO_BUFFER_CAPACITY_MS)), Integer.parseInt(String
.valueOf(AACPlayer.DEFAULT_DECODE_BUFFER_CAPACITY_MS)));

try {
System.out.println("One : "+RADIO_STATION_URL);
player.playAsync(RADIO_STATION_URL);
} catch (Exception e) {
e.printStackTrace();
}

我遇到了错误

    02-19 15:15:08.124: E/AndroidRuntime(769): FATAL EXCEPTION: Thread-12
02-19 15:15:08.124: E/AndroidRuntime(769): java.lang.UnsatisfiedLinkError: nativeStart
02-19 15:15:08.124: E/AndroidRuntime(769): at com.example.xmlparsingex.ArrayDecoder.nativeStart(Native Method)
02-19 15:15:08.124: E/AndroidRuntime(769): at com.example.xmlparsingex.ArrayDecoder.start(ArrayDecoder.java:100)
02-19 15:15:08.124: E/AndroidRuntime(769): at com.example.xmlparsingex.ArrayAACPlayer.playImpl(ArrayAACPlayer.java:114)
02-19 15:15:08.124: E/AndroidRuntime(769): at com.example.xmlparsingex.AACPlayer.play(AACPlayer.java:273)
02-19 15:15:08.124: E/AndroidRuntime(769): at com.example.xmlparsingex.AACPlayer.play(AACPlayer.java:242)
02-19 15:15:08.124: E/AndroidRuntime(769): at com.example.xmlparsingex.AACPlayer$1.run(AACPlayer.java:202)
02-19 15:15:08.124: E/AndroidRuntime(769): at java.lang.Thread.run(Thread.java:1019)

最佳答案

您不能重命名 ArrayDecoder 类(即它必须属于 com.spoledge.aacplayer 包)。您仍然可以将此类用作包中的 com.spoledge.aacplayer.ArrayDecoder。我建议您不要将任何 aacplayer 类移动到您的包中。

关于java.lang.UnsatisfiedLinkError : nativeStart android NDK 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14954692/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com