I am trying to use the LookAtMe feature, when running from MainActivity, it runs absolutely fime but while trying to run on a button click from a different activity , I getting below error. tried all possible options but not able to resolve it, any help is highly appreciated-
I am getting this error on line : lookAtMe.init(com.example.videoexample.VVedio.this);
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.videoexample, PID: 12517
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl;
at com.pd.lookatme.LookAtMe.createCameraSource(LookAtMe.java:222)
at com.pd.lookatme.LookAtMe.init(LookAtMe.java:35)
at com.example.videoexample.VVedio$1.onClick(VVedio.java:40)
at android.view.View.performClick(View.java:6642)
at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1119)
at android.view.View.performClickInternal(View.java:6619)
at android.view.View.access$3100(View.java:790)
at android.view.View$PerformClick.run(View.java:26189)
Related
While using Futronic finger print, it throws an error "BrainSketchScan keeps stopping" and exits the program on Android Pixel 4a phone. I tried using clear cache and storage etc., but it does not resolve the issue.
On the console it throws the following error
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.futronictechs, PID: 18154
java.lang.UnsatisfiedLinkError: dlopen failed: library "libusb-1.0.so" not found
Can someone please help, as I am not able to use the Futronic fingerprint scanner on Android 10+ version phones
I tried using clear cache and storage etc., but it does not resolve the issue.
On the console it throws the following error
Tried ensuring that the libs are available in the respective folder
I use Retrofit 2.8.1 to make a network call. When I disable my network connection, the app crashes. But strangely I've got nothing about stack trace on logcat. Just says:
E/AndroidRunTime: FATAL EXEPTION: main
Process: ir.kaaveh.recyclerviewmvvm, PID: 31179
When I surround my network call with try/catch and use e.printStackTrace(), I find out that:
java.net.UnknownHostException: Unable to resolve host "www.omdbapi.com": No address associated with hostname
Why Android studio don't show me stack trace in this case? Usually, it tells you which line causes throw exception.
You can find the full source code here.
I only get errors on the huawei phone
Fatal Exception: java.lang.NullPointerException at com.google.android.gms.ads.internal.video.exoplayer3.a.b.
I'm not an intern. So I know what is the usual NullPointerException error. In my question, the error only occurs on 1 single device and can not find details in the crashlytics report. So if you can not provide a help answer, please do not flag or report duplicates when you do not know what it is.
Using the Android Accessibility Service.
On Android 8.0 (only) I have a lot of crash with:
Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: src.length=5 srcPos=0 dst.length=5 dstPos=3 length=5
at java.lang.System.arraycopy(System.java)
at java.util.ArrayList.addAll(ArrayList.java:591)
at android.view.accessibility.AccessibilityNodeInfo.init(AccessibilityNodeInfo.java:3212)
at android.view.accessibility.AccessibilityNodeInfo.refresh(AccessibilityNodeInfo.java:867)
at android.view.accessibility.AccessibilityCache$AccessibilityNodeRefresher.refreshNode(AccessibilityCache.java:564)
at android.view.accessibility.AccessibilityCache.refreshCachedNodeLocked(AccessibilityCache.java:206)
at android.view.accessibility.AccessibilityCache.onAccessibilityEvent(AccessibilityCache.java:170)
at android.view.accessibility.AccessibilityInteractionClient.onAccessibilityEvent(AccessibilityInteractionClient.java:541)
at android.accessibilityservice.AccessibilityService$IAccessibilityServiceClientWrapper.executeMessage(AccessibilityService.java:1709)
This Stacktrace doesn't contain any line from my own code.
I cannot reproduce it on my side and I have no idea on how to fix it. Do you?
I imported a package of my own called server (the logic of my program) and was going to use libgdx for the graphics/cross platform. The desktop launcher works fine but when I run the android launcher I get this nasty error referring to my own library.
E/AndroidRuntime: FATAL EXCEPTION: GLThread 187
Process: com.mygdx.game, PID: 8093
java.lang.NoClassDefFoundError: server.Point
at server.Shape.<init>(Shape.java:9)
at server.T.<init>(T.java:7)
at server.Stack.<init>(Stack.java:28)
at server.Logic.<init>(Logic.java:14)
at com.mygdx.game.GameLoop.create(GameLoop.java:43)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:275)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1511)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)
any help would be great
I solved it!
It was because I was using java.awt.point in the android build. So I basically wrote a new point class, replace it, and then cleaned my project. Everything works now