Run*_*ror 2 android android-gradle-plugin android-proguard
我不能使用
implementation 'de.mrmaffen:libvlc-android:2.1.12@aar'
Run Code Online (Sandbox Code Playgroud)
如果设置minifyEnable为true.
错误信息是
无法加载 vlcjni 库:java.lang.UnsatisfiedLinkError:从“/data/app//lib/arm64/libvlcjni.so”中的 JNI_OnLoad 返回 JNI_ERR
如何minifyEnable true与libvlc一起使用?
小智 6
如果您混淆,libvlc本机代码将无法找到必要的类和方法,因此它会返回一个JNI_ERR. 您只需排除libvlcfrom ,在文件ProGuard中添加此行progaurd
-keep class org.videolan.libvlc.** { *; }
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1851 次 |
| 最近记录: |