How do figure out problem in logcat in android studio? - java

I have a bug problem where my app closes whenever it launches and I have read that I should look in my logcat to identify problem but I don't know how do I read the logcat and understand how to solve the problems. These are all the errors I'm getting in my logcat
FATAL EXCEPTION: main
Process: com.mydomain.calculator, PID: 6294
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mydomain.calculator/com.mydomain.calculator.MainActivity}: java.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.
This is the only androidruntime error I'm getting. I'm not sure how to solve it can someone help

I think your theme already has a toolbar and in your layout you are trying to use another one. So, remove the default toolbar that comes within your theme. In your themes.xml, change parent to NoActionBar like below.
<style name="<app theme name>" parent="Theme.MaterialComponents.DayNight.NoActionBar">

Related

the application which made on android studio is not opening in my an

2019-09-29 18:21:14.631 17496-17496/com.vssquare.testapp1
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.vssquare.testapp1, PID: 17496
java.lang.RuntimeException: Canvas: trying to draw too large(252169968bytes) bitmap.
at android.view.DisplayListCanvas.throwIfCannotDraw(DisplayListCanvas.java:229)
at android.view.RecordingCanvas.drawBitmap(RecordingCanvas.java:97)
at android.graphics.drawable.BitmapDrawable.draw(BitmapDrawable.java:529)
Please Check Your Images Bytes I Guess Its Too Large If you are using any images in drawable folder then rename that last 24 specified files.

Error when click on edit text android

After actualization android studio to version 3.1 I have problem with my project.
When i click on edit text activity closing and throw exception.
I have no idea why is this happening, pls help.
E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!
E/AndroidRuntime: Error reporting crash
android.os.TransactionTooLargeException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(Binder.java:496)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java:4180)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:144)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
This is a bug in new android studio version(3.1), hope they fix it ASAP.
If you run same app without changing anything in previous version like 3.0 this app will work fine.
For now disabling it (Edit configuration settings -> Profiling -> Enable advanced profiling) prevents EditText from crashing

My app crashes on launch?

I apologize for the broad title but I struggle to be more specific because iIhonestly don't know what went wrong. I was working on my app just like normal, and I hadn't tested for a couple of hours and also I think I updated something in android studio (It prompted me that some features were ready to be updated and I clicked)
Anyways, I've reverted everything I could think of that I might have screwed up, but it still won't work. I figure it might be something in the gradle files. Is anyone able to figure it out based on this?
--------- beginning of crash
10-24 14:10:47.679 2597-2597/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.jonet.lillehauaapp, PID: 2597
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.example.jonet.lillehauaapp-a1apOVe4GHJGjXWwg52Lag==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.jonet.lillehauaapp-a1apOVe4GHJGjXWwg52Lag==/lib/x86, /system/lib, /system/vendor/lib]]] couldn't find "libnative-lib.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:1011)
at java.lang.System.loadLibrary(System.java:1657)
at com.example.jonet.lillehauaapp.MainActivity.<clinit>(MainActivity.java:25)
at java.lang.Class.newInstance(Native Method)

Runtime Error [Android Studio] Linphone Project

I build the project successfully but when I run the project on emulator I get this error on screen.
Unfortunately Linphone has stop working!
While the logcat displays the runtime errors
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo
{org.linphone/org.linphone.LinphoneActivity}:
android.view.InflateException: Binary XML file line #60:
Error inflating class org.linphone.ui.Numpad at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
Please do help me solve this out. I will totally appreciate!

no package identifier when getting value for resource number 0x00000000

I am new to Android app development. I try to connect my app with facebook using SocialAuth SDK. but am getting a error as
"no package identifier when getting value for resource number 0x00000000" and thread id=1: thread exiting with uncaught exception (group=0xb2a40ba8) then it goes to FATAL EXCEPTION: main.
I have tried to clean and build the project, but nothing happens, still getting same errors.
Can anyone help me to resolve this problem.?
08-04 11:28:15.642: E/AndroidRuntime(2227):
android.content.res.Resources$NotFoundException: Resource ID
You have to put Icon for facebook named facebook.png into your res (Resource) folder it's not able to find it right now that's why you are getting ResourcesNotFoundException.

Categories