-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
同上问题.不使用您编译好的库,直接编译jni会报错 #3
Comments
编译后so库有没有生成! |
我改了一些配置, 但是还是会报错, 报错如下: W/dalvikvm: threadid=13: calling UncaughtExceptionHandler 这个也是编译的so没有生成吗? 是不是我的配置有问题? 需要进行一些什么样的配置呢? |
应该是。有空再试试 里面提供的so库就是我这边编译出来的,没问题 |
对, 用您编译好的确实没有问题. 但是自己编译的话就不行. |
你好 我这也是 自己编译jni就报错 用你编译好的就没问题 编译平台 都加了 Process: com.yuyh.inc.update, PID: 19181 |
好的 谢谢;
858678182@qq.com
发件人: LeBron_Six
发送时间: 2017-02-24 12:54
收件人: smuyyh/IncrementallyUpdate
抄送: duanzejiang; Author
主题: Re: [smuyyh/IncrementallyUpdate] 同上问题.不使用您编译好的库,直接编译jni会报错 (#3)
@liulixin1 参考一下这个试试:http://stackoverflow.com/questions/28740315/android-ndk-getting-java-lang-unsatisfiedlinkerror-dlopen-failed-cannot-loca
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
报错内容如下::
11-14 16:49:49.626 14403-14478/? E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
Process: com.yuyh.inc.update, PID: 14403
java.lang.RuntimeException: An error occured while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:300)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load libApkPatchLibrary from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.yuyh.inc.update-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.yuyh.inc.update-1, /vendor/lib, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:526)
at com.yyh.lib.bsdiff.DiffUtils.(DiffUtils.java:20)
at com.yyh.lib.MainActivity$DiffTask.doInBackground(MainActivity.java:157)
at com.yyh.lib.MainActivity$DiffTask.doInBackground(MainActivity.java:151)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
11-14 16:49:49.955 1133-1216/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/data/theme/com.yulong.android.launcher3/res/drawable-xhdpi/com_yyh_lib_mainactivity.png: open failed: ENOENT (No such file or directory)
11-14 16:49:49.956 1133-1216/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/data/theme/com.yulong.android.launcher3/res/drawable-xhdpi/com_yyh_lib_mainactivity.png: open failed: ENOENT (No such file or directory)
您知道是因为什么吗?
The text was updated successfully, but these errors were encountered: