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

标签 java vlc android-6.0-marshmallow

我构建了一个基于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/

相关文章:

java - Hibernate继承hql类型

java - Servlet Listners 和加载外部 Jars 性能

xcode - 在 OS X 10.10 (Yosemite) 下编译 VLCKit

ubuntu - 将视频展开(延长)到特定时长

Android 6.0 Marshmallow BLE 连接问题

java - File.lastmodified() 生成错误的日期和月份

linux - 具有 Arm 架构的 cubox 上的 Vlc 和 vlc Web 插件

android - 无法从 Activity 发送短信,说 "could not start conversation"

android - checkSelfPermission 返回 PERMISSION_GRANTED 以撤销 targetSdkVersion <= 22 的权限

java - Android 使用 jdbc 连接到 google cloud sql