gpt4 book ai didi

java - 无法在Android 6.0上加载vlcjni库

转载 作者:行者123 更新时间:2023-12-02 09:14:56 25 4
gpt4 key购买 nike

我构建了一个基于VLC的播放器,当我想构建一个适用于Android 6.0的版本时,播放器无法在Android 6.0设备上启动。日志如下:无法加载vlcjni库:java.lang .UnsatisfiedLinkError:dlopen失败:/data/app/lib/arm/libvlcjni.so:具有文本重定位。而且我也尝试了很多方法来解决,但还是没有解决。我希望有人能告诉我这个问题。

最佳答案

以下是类似的问题和答案:libavcodec.so: has text relocations

Today, I got the same error messages when testing my app with Android 6.0 on a Nexus 6 (Motorola). I solved my issue by checking the targetSDKVersion in the manifest file. Using "22" and not "23" as targetSDKVersion solved it. (See below)

<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="22" />

I also checked the build.gradle files for compile version and targetSDKversion:

compileSdkVersion 22
buildToolsVersion '22.0.1'

defaultConfig {
minSdkVersion 15
targetSdkVersion 22
}

Hope this will help you. However, this is just a short term workaround for now, I hope that we will get some feedback from metaio though.

Regards, christin

关于java - 无法在Android 6.0上加载vlcjni库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35450347/

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