UnsatisfiedLinkError:dalvik.system.PathClassLoader [英] UnsatisfiedLinkError: dalvik.system.PathClassLoader

查看:126
本文介绍了UnsatisfiedLinkError:dalvik.system.PathClassLoader的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为AndroidTV制作应用程序,但出现错误

I'm making an application for AndroidTV and get the error

java.lang.UnsatisfiedLinkError:
 dalvik.system.PathClassLoader[DexPathList[[zip file
 "/data/app/mytv.mytv-2/base.apk"

在装有Android 6.0.1的NexusPlayer上.很好奇它可以在装有Android 5.1.1的智能电视上运行.

on a NexusPlayer with Android 6.0.1. Curious that it works on a smart TV with Android 5.1.1.

全文错误为:

java.lang.UnsatisfiedLinkError:
 dalvik.system.PathClassLoader[DexPathList[[zip file
 "/data/app/mytv.mytv-2/base.apk"],nativeLibraryDirectories=[/data/app/mytv.mytv-2/lib/x86, /data/app/mytv.mytv-2/base.apk!/lib/x86, /vendor/lib, /system/lib]]]
 couldn't find "libnmpsdk.so"

如果有帮助.

(jniLabs最好有2个文件夹armeabi和armeabi-v7a,每个都有libnmpsdk.so)

(jniLabs is fine with 2 folders armeabi and armeabi-v7a and each one has libnmpsdk.so)

日志显示给我的错误行包含以下部分代码:

The error line that log is showing me has this part of code:

static {
    System.loadLibrary("nmpsdk");
}

如果有人遇到此问题,请告诉我,我还没有找到解决问题的方法.

If anyone had encountered this problem please let me know, i haven't found anything that solves it yet.

谢谢.

推荐答案

因此,对于我的情况,这是UnsatisfiedLinkError的解决方案,但我认为这很普遍.

So this is the solution for UnsatisfiedLinkError for my case but I think it's general.

在此行中将gradle.properties放入

Put in gradle.properties this line

android.useDeprecatedNdk=true;

,然后在build.gradle的defaultConfig字段中将此行

and in build.gradle this line in defaultConfig field

ndk {
            abiFilters "armeabi", "armeabi-v7a"
        }

这篇关于UnsatisfiedLinkError:dalvik.system.PathClassLoader的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆