How to fix logcat for app not showing in Android Studio? - android

When I run my app on my Galaxy S7, nothing shows in the logcat in Android Studio. Not even while debugging. If I use another device, I can see the logcat. On one device (Asus Padfone Android version 4.4.2) I can run my app from Android Studio and everything works fine. When I run it on my S7(Different Android version: 7.0) the app crashes in some activities but since the logcat doesn't show I can't see what the problem is. How can I get the logcat to show so I can see the issues? I've tried killing adb processes and restarting the adb server. I've invalidated cache in Android Studio. Nothing works. I was able to see the logcat prior to my S7 updating. I'm using Android Studio 2.3.1. All sdk packages are downloaded and up to date.
Note: I posted this question here because I believe it to be more relevant to programming than hardware.

Related

Why are my physical devices running old APK, but emulator runs updated APK?

I have 2 physical devices and 1 emulator (genymotion) attached to ADB for deployments from Android Studio. Usually, they all work just fine. However, the two physical devices are not showing updated code changes, rather they are showing an old apk with old code every time I run from Android Studio. I have tried reconnecting them, and tried uninstalling the old APK, but they still show the old changes. The emulator works fine. What happened?
UPDATE (2:00PM MST) :
The same issue is happening on all emulators (and devices) running Android 5.0 or higher. The emulator running 4.4.4 is doing just fine. Now I'm really confused, especially since everything was working just fine this morning.

Android Studio - Emulator doesn't load my app

I'm using android studio about 2 weeks and everything is going right until I try to create a new app and the android studio ask me for updates to API level 22 and I did it. After this update my emulator doesn't load my app anymore, the emulator opens but the app doesn't show up and even appears at emulator.
Log:
Device Nexus_5_API_21_x86 [emulator-5554] is online, waiting for processes to start up..
I try to uninstall and install again the android studio but even reinstalling with API level 21 keep not working.
Even the default Hello World application doesn't load and not show up at my emulator.
I had the same issue, and was able to work around it by manually starting the emulator first, then running the app and choosing the running emulator
I had this same issue with my first app on android studio 2.1.2. I just tried to run it and see on emulator screen but app didn't show up there.
Remember to check the messages panel it saying something wrong with my java version. I had installed JDK 7. I installed JDK 8 and that fixed the problem.

Android Studio 0.8.9 Emulator Issues

Would anyone know why my application on my emulator is not updating with my code? Along with that, when I have the emulator running and I try to rerun the program it does not recognize there is already an emulator running. I figure these two issues are related.
Fixes I have attempted to of no avail:
Reset ADB
Uninstall the app on the emulator and rerun program but as I said above the emulator is not recognized. Now I just don't have the app on my emulator anymore.
I have also tried to use the Device Monitor - for an emulator but again, the emulator is not recognized even though it is running.
Reinstalled android studio
Any advice will be helpful.

Unable to debug on IntelliJ on some phones

I am unable to debug on IntelliJ one of my apps, other apps debug just fine. The issue is only happening on my Galaxy Nexus 4.2.2 and on my Nexus 7 4.4.2. My GS3 with 4.3 works just fine.
The error I get is:
Warning: debug info can be unavailable. Please close other application using ADB: Monitor, DDMS, Eclipse
IntelliJ support says it is an issue with ddms, and I do tend to agree with them because when I open ddms by hand I can see no processes under the phones that don't work but I can see a bunch of processes under the phone that works.
Has anyone else had this issue?
IntelliJ is version 13.0.2 and I am on OSX 10.9.1
Thanks.
EDIT: I should mention I already tried restarting phone and laptop, removing the app from the phone, clearing data, clearing cache, clearing caches on intellij. Also I tried other apps yesterday and they worked just fine on all devices, so it seems to be just one app, I don't know if there is a way to clear something on ddms that it might be remembering about my app?
Turns out that when using an artifact that signs your app you must set debuggable=true on your application on the manifest.

installing app in the Android tablet

I have an android app which uses sqllite, i have the apk files built in 2.2 sdk. It runs smoothly on the emulator, but when I installed it on the Samsung Galaxy Tab (Android tablet) it gets installed but wont run. It gives me error "my_app_name(my_package) have stopped unexpectedly. Please try again "..I don't know why this happens..
please help
Have you tried using DDMS to see what the error is? It should report the line of Java it crashed on and give you an indication as to the problem..

Categories

Resources