I have an app which is working fine, but whenever I go to Android Device Monitor, there is nothing in both devices and DDMS
What should I do so that my project is displayed?
I had the same problem. This worked with the first device created and not with a second device : DDMS showing empty file explorer for online emulator. I deleted all devices and recreated a new one and it works. I think that only a single device can be run with debugging
You need to run your Application first and then run the Android device monitor, it should populate the tabs after that.
Related
I am new to Flutter and android studio, I followed the instructions of flutter.io , I created a blank app, and while I try to run I am unable to see the device lists. but it is available in device manager
Please see the screenshot.
Go to Tools->Troubleshoot Device Connections.
Connect your device over USB
If your device name does not show here then your USB or device has a problem.
You have to enable USB Debugging on your device.
Restart ADB Server.
I hope this addresses your issue.
You've not run your device....
Under Actions Click the Run button......
The emulator will start and your problem solved..
So I am developing my first app with Android Studio, it's a Shopping app and everything seems to work just fine when I try it out on the built-in Emulator (Android 9). However, when I connect my Smartphone (same Android version), I won't get pass my Login screen. Currently the data is stored through SQLite, which may cause issues.
I'd really like to look up what's the exact problem, but there is no Log feed showing up in Android Studios.
Are there any settings that provide the same Logs as if I was running it on an Emulator?
Make sure you have selected right device i.e there is a dropdown option for devices in logcat check that and choose your device because it will be set to the previous device by default
If I'm understanding correctly, you would want to use logcat?You can debug phone issues in it also, just select your phone in the options. I have two external phones I test on, logcat shows those phones.
I'm connecting a webcam to my emulator by setting the front camera to "webcam0" in the AVD Manager.
When I launch the webcam from Android studio's AVD manager or using emulator -camera-front webcam0 , I get the following window:
and when the emulator has showed that is an error
Please help me how to fix that.
Go to Android Virtual device manager>>select the emulator>>click edit>>select Advanced Setting>>camera select as Emulated rather than Webcam0 .
I got this error on new android emulator and was able to fix it by selecting emulated options for both Front and Back camera and clearing Camera App's Cache & data.
The solution for me was : " start Android Studio via command line vs starting it the usual way " Doing so makes Webcam0 work inside the emulator.
On my Mac I simply typed
/Applications/Android\ Studio.app/Contents/MacOS/studio
into terminal. I also used Automator later to create a workflow which runs the script (command above), and saved the workflow as an app.
Using such Android Studio launcher.app launches Android Studio.app for me via command line.
Android Studio:
Tools > AVD Manager
select the Device & click edit
click Show Advanced Setting
Camera select as Webcam0
Click >> Finish
Download the free personal use version of genymotion and use that emulator instead of the one that come with Android Studio.
Like you, I've been trying all morning to make my webcam work with the emulator that comes with android studio without success. 0 problems with genymotion so far.
In my case, just change configuration -> saved -> turn on device (cold boot notification will appear) -> then turn off device -> revert change -> turn on again.
I don't know but it works for me. Maybe it just cache problem. CMIIW.
but if you are using bluestack emulator or any other emulator.
then in emulator first open emulator camera then click photo of that
then again your own application in emulator and click button of camera ..i must be work ..
How can I debug other than the first device in Android Studio?
I have two Genymotion devices Nexus 5 and Nexus 6, I can run both successfully but when I try to run/debug app from android studio no matter what device I choose it always runs first selected device.
Initially I thought it is genymotion issue but, it was not the case because same happens if I connect real device. Even though device appears in device chooser dialog but it looks like android studio internally doesn't see it.
Stopping debugging for current device before selecting new device helped me. (Red square)
Here is the solution
First: Go to run configuration in android studio
Then: Select the emulator you want
Finally: Run it
It's a bug in Android Studio, supossedly fixed in 1.5.1 but I have 1.5.1 and the bug is still present. Suggested workaround from Google dev is to "close the debug tab once it is done":
https://code.google.com/p/android/issues/detail?id=195167
When I want to Run an app in my Android Studio, there is some weird phone (Motorola XT1052) shown as "connected". And I can even run an app on that device. However, I don't have and never had such phone. I don't have any phones connected via USB, and this Motorola is visible all the time, even after restarting the computer.
I used to have "ADB WIFI" plugin and I thought that it might be the cause, however, after uninstalling it, the device is still visible. How can I delete this device?
I'm having problems with emulator in general, I can't run any app as it always hangs on "waiting for target device to come online", so I wonder if that weird ghost phone might be the problem, since no other solution helped me with the emulator.
I finally got is so I figured I'd share what I've found out.
Look for some other emulators that might be running. In my case, it was a program called Bluestacks. Turns out you can actually install your own apps on it through Android Studio.