Djinni - Android Crash - UnsatisfiedLinkError - android

very much stuck here I had the project working fine now for some reason every time i launch i get a crash. any help on this would be appreciated.
Process: com.amr, PID: 4185
java.lang.UnsatisfiedLinkError: Couldn't load amr_android from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.amr-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.amr-1, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at com.amr.RandomRumbers.<clinit>(RandomRumbers.java:25)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)

This is because in the apk there is no native library for the specific processor type of the target device. You should check which one you have and provide the apk with the native library compiled for that type.

Related

My android app work in version 8 (Oreo) but not work in version 4.4 (KitKat)

I have a problem when I run my app in android version 8; The following error shows in the log:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mirasoft.mirasoftaccounting, PID: 2734
java.lang.NoClassDefFoundError: uk.co.chrisjenx.calligraphy.R$attr
at uk.co.chrisjenx.calligraphy.CalligraphyConfig$Builder.<init>(CalligraphyConfig.java:194)
at com.mirasoft.mirasoftaccounting.public_package.MyApplication.updateLanguage(MyApplication.java:80)
at com.mirasoft.mirasoftaccounting.public_package.MyApplication.onCreate(MyApplication.java:48)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1007)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4344)
at android.app.ActivityThread.access$1500(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)

App not running on Android 19, but runs on Android >19

I built an android app, when try to run on devices running android 19, I receive this error, I can't track any missing APIs or unimplemented methods in OS 19.
03-24 09:26:08.118 2668-2668/com.cac.lingo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.cac.lingo, PID: 2668
java.lang.VerifyError: com/cac/lingo/LoginActivity
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1208)
at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)

Getting the crash in this library "com.crashlytics.sdk.android:crashlytics:2.6.5#aar" library in android studio gradle

I have added the above crashlytics library in the AndroidStudio project, but its getting the below error
FATAL EXCEPTION: main
Process: com.pw.health.live_patient, PID: 28520
java.lang.NoClassDefFoundError: com.po.dm.input.DeviceType
at com.po.sdk.NWFactory.initDeviceInfo(NWFactory.java:293)
at com.po.sdk.NWFactory.access$500(NWFactory.java:79)
at com.po.sdk.NWFactory$2.receiveResponseData(NWFactory.java:267)
at com.po.sdk.http.handler.impl.RequestExecutor.onPostExecute(RequestExecutor.java:128)
at com.po.sdk.http.handler.impl.RequestExecutor.onPostExecute(RequestExecutor.java:29)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5086)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
12-16 12:37:25.478 28520-28555/com.pw.health.live_patient I/CrashlyticsCore: Crashlytics report upload complete: 5856754392F0-0001-6F68-9E8808E56C06
Refer This it is working fine for me
https://fabric.io/kits/android/crashlytics/install

Android Studio with javaCv and FFMPEG

So I am using the new Android Studio and I am trying to get JavaCV installed in the most basic setup. I made a brand new project with nothing in it, imported (I think unsuccessfully) the JavaCV library and then I am running one of the samples given in the JavaCV repo and I am getting the following error.
Process: com.example.calvintmoss.dejavid, PID: 1187
java.lang.UnsatisfiedLinkError: Couldn't load jniopencv_core from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.calvintmoss.dejavid-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.calvintmoss.dejavid-1, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
at org.bytedeco.javacpp.Loader.load(Loader.java:410)
at org.bytedeco.javacpp.Loader.load(Loader.java:353)
at org.bytedeco.javacpp.opencv_core.<clinit>(opencv_core.java:10)
at org.bytedeco.javacpp.helper.opencv_core$AbstractIplImage.create(opencv_core.java:909)
at com.example.calvintmoss.dejavid.MainActivity.initRecorder(MainActivity.java:249)
at com.example.calvintmoss.dejavid.MainActivity.onCreate(MainActivity.java:151)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.UnsatisfiedLinkError: Couldn't load opencv_core from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.calvintmoss.dejavid-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.calvintmoss.dejavid-1, /system/lib]]]: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:358)
at java.lang.System.loadLibrary(System.java:526)
at org.bytedeco.javacpp.Loader.loadLibrary(Loader.java:535)
at org.bytedeco.javacpp.Loader.load(Loader.java:401)
            at org.bytedeco.javacpp.Loader.load(Loader.java:353)
            at org.bytedeco.javacpp.opencv_core.<clinit>(opencv_core.java:10)
            at org.bytedeco.javacpp.helper.opencv_core$AbstractIplImage.create(opencv_core.java:909)
            at com.example.calvintmoss.dejavid.MainActivity.initRecorder(MainActivity.java:249)
            at com.example.calvintmoss.dejavid.MainActivity.onCreate(MainActivity.java:151)
            at android.app.Activity.performCreate(Activity.java:5231)
            at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
            at android.app.ActivityThread.access$800(ActivityThread.java:135)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5001)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
            at dalvik.system.NativeStart.main(Native Method)
I have read several of the other top posts on the issue but I cannot figure out what is wrong. I downloaded the JavaCV through gradle, then I added the lib and lib/areabi folders. I imported ffmpeg.jar, javacpp.jar, javacv.jar and opencv.jar all to the lib folder. and I extracted all the .SO files from opencv-android-arm.jar and ffmpeg-android-arm.jar and put them in the lib/armeabi just like the instructions on the git repo. I cannot figure out what is going on. Anyone have any ideas? Also my current setup is. Project->AppModule and then inside of that is where I have my lib and inside of lib i have the armeabi. Does anyone have any info on whats going on?
I had the same problem, I took the library from google.
Projects in use FFMpegRecoder and IplImage
My libs:
javacv-0.7-src.zip
javacv-0.7-bin.zip
javacv-0.7-cppjars.zip
https://code.google.com/p/javacv/
Try to add these five codes in dependency:
compile 'org.bytedeco:javacv:+'
compile 'org.bytedeco.javacpp-presets:opencv:3.0.0-1.1:android-x86'
compile 'org.bytedeco.javacpp-presets:ffmpeg:2.8.1-1.1:android-x86'
compile 'org.bytedeco.javacpp-presets:opencv:3.0.0-1.1:android-arm'
compile 'org.bytedeco.javacpp-presets:ffmpeg:2.8.1-1.1:android-arm'
Here you are using bytedeco instead of googlecode now

Android - Scandit - java.lang.UnsatisfiedLinkError

Scandit SDK started crashing when initializing. It was working fine, but it just started erroring out. I have tried googling around for a solution, and I've tried every suggestion. But nothing seems to fix it. It doesn't seem to be a proguard issue and the build path seems correct.
E/AndroidRuntime(25471): java.lang.UnsatisfiedLinkError: Couldn't load scanditsdk-android-3.5.3 from loader dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.android.example-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.android.example-1, /vendor/lib, /system/lib]]]: findLibrary returned null
E/AndroidRuntime(25471): at java.lang.Runtime.loadLibrary(Runtime.java:358)
E/AndroidRuntime(25471): at java.lang.System.loadLibrary(System.java:526)
E/AndroidRuntime(25471): at com.mirasense.scanditsdk.ScanditSDKBarcodePicker.initializeRecognitionEngine(ScanditSDKBarcodePicker.java:1364)
E/AndroidRuntime(25471): at com.mirasense.scanditsdk.ScanditSDKBarcodePicker.<init>(ScanditSDKBarcodePicker.java:333)
E/AndroidRuntime(25471): at com.mirasense.scanditsdk.ScanditSDKBarcodePicker.<init>(ScanditSDKBarcodePicker.java:255)
E/AndroidRuntime(25471): at com.venueplus.android.VPScannerActivity.onCreate(VPScannerActivity.java:99)
E/AndroidRuntime(25471): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime(25471): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime(25471): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E/AndroidRuntime(25471): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime(25471): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime(25471): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime(25471): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(25471): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(25471): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(25471): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(25471): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(25471): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(25471): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(25471): at dalvik.system.NativeStart.main(Native Method)
Help is much appreciated
After talking with a Scandit engineer, it turns the problem was that I didn't have a directory named "armeabi-v7a" in addition to "armeabi". So the libscandit-sdk-android-3.5.3.so file must be present in both subfolders.
Hope this helps someone

Categories

Resources