I've setup android in eclipse according to this tutorial. I downloaded the android sdk zip file from here and unzipped it to my c drive. Android sdk 2.3.3 api level 10 is installed and I have setup an android virtual device in the android SDK and AVG manager. The settings are as follows
In Eclipse, when I go to - 'Window -> Show View -> Android -> LogCat', the logcat view opens up. When I start the emulator however, I see absolutely nothing in the logcat window. Any ideas why this might be happening?
==============================================================================
Update Unfortunately none of the suggestions are working. I don't see anything
in my devices tab at all. It's empty. See image below.
In that case try to reset adb.
Go to the Devices view in the DDMS perspective.
Click on the View Menu button that looks like a down arrow.
Select Reset adb.
Of course you'll have to select an application on that device first.
Try opening the DDMS perspective (in Eclipse, Windows -> Open Perspective -> DDMS), then select the device in the Devices tab (by default in the upper left hand corner). Also make sure the LogCat window is showing too.
I've noticed that sometimes the LogCat window stops updating, but changing the filter (Verbose-Debug-etc) by clicking the round white buttons with letters inside fixes it.
Probably device is not selected for your logcat.
try 'Window -> Show View -> device and then select the emulator
May be because your device is not is not selected
In your Devices tab (where all the running emulators and devices are shown), select your desired emulator
If your eclipse didn't shows Devices, then Window -> Show View -> Android -> Devices
Close the logcat window completely ... kill it ... it's stuck ... then Window-> Show View -> Other -> LogCat
Related
Aa beginner, failed to run my first Android Application on Android Studio 3.6. How can I make the right setting to see the preview device in the emulator?
I tried the same question and discussion, but failed to solve my problem.
Here's the problem: You don't have any virtual devices. Here's a screenshot of what you probably should have to run (In AS 3.6 Preview):
Compare this to your picture where it says "No devices". So, I'm going to walk you through creating an AVD.
Now, since I do have AVDs, I'm just going to create one. click on that drop-down menu that for you says "No devices" and click "Open AVD Manager":
In the popup click "Create Virtual Device..."
In the Virtual Device configuration popup select the device you want and click "Next".
Choose the system image you want (you can go to the other tabs to see what's there) and click "Next"
Then name your AVD and click "Finish"
Now you should see your new Android Virtual Device:
Closing out of it, you can now run your application with the green "Run" arrow!
I hope this helped!
First try this-
Go to the bottom left of Android Studio then click on the square (the one which show/hide the tool on the left, bottom and right) then on Designer. A new tab should be on the right part of android studio, with gradle and maven project.
If still doesn't work, try this -
If you double click on your .xml file tab at the top it will maximize the designer window. Then on the left you can drag the window to shrink and it will reveal the palette. Then just click on the tab on the left to open the project window.
After connecting the device , go to Files -> Invalidate Caches/Restart -> Invalidate and Restart
I only need what's relevant for the development and testing. I don't need the huge "emulated" dumb bezel area mostly good for grabbing and relocating the emulator window. Even the real devices start to eliminate those bezels nowadays.
I don't need the directional clues about the device orientation it provides. Just small grabbing handle should be enough on the tool strip or in the main window.
It wastes screen real estate and makes tiling besides other useful windows hard or inefficient (even with my double monitor setup).
How can i hide or remove it?
It no longer works: if I remove the properties (using the small trash button or leaving them empty), the manager will restore them. (My version: Xamarin.Android SDK 10.2.0.100)
But I've found another solution:
Open Android Device Manager from Visual Studio.
While your device is powered off, click the "..." in the top right corner
Select "Show in explorer"
Edit the file "config.ini"
Remove the skin.name and skin.path properties and save file
Start the device!
Open Android Device Manager from Visual Studio.
While your Device is powered off Click Edit
Find the property skinname and clear the value (leave empty)
Find the property skinpath and clear the value (leave empty)
Click Save & Start Device.
Worked for me
Show in Explorer now called : Reveal in Explorer
And you can just add // before skin for example:
//skin.name=pixel_xl
Open Android Studio -> Tools -> AVD Manager -> Pencil Icon next to Your Virtual Device -> Uncheck 'Show device frame'
Android Studio 2.1.3 on Windows 10 64 bit.
I go to Tools->Android->AVD Manager.
It shows me an error "Android Virtual Device" failed to load - click Details to see the error.
When I click Details, it does not show any error.
When I click on Edit & try to turn of "Host GPU" & turn on "Snapshot" option, the OK button remains grayed out - so I cannot save the Snapshot Option.
The emulator itself runs fine - however, how do I turn on the Snapshot option.
Try going to your SDK manager and making sure everything is updated. Your options are slightly different and I believe it's because you are using an older version.
They now have the Emulator Accelerator. You can also select to run off of your hardware and choose the number of Cores from your CPU to assign to the virtual device.
accroding to this image http://imgur.com/cWqmDgH you have not set skin ..so please choose skin option then you will be able to see ok button
I have just installed (extracted) properly the ADT bundle for eclipse + android SDK and also set a new AVD which is currently working on my background and looks fine.
my problem is: once i create any app and click the 'Run' or 'Debug' button, nothing happens.
I don't see any 'launching : (nn%) ..' message at the bottom and the AVD is not effected at all - nothing happens!
I have no idea what is the problem but a while ago i installed this exactly same way and had seen this issue before. could anyone please advice me what to do?
right click you project->run as -> run configuration, check whether launce default activity is selected, and in target tab check "always prompt to pick device"
If the button works fine for the first time and doesn't work later, try this.
Open Devices view using Window > Show View > Devices.
Then, in Devices, under your emulator, find your application package name. Select it and press the red "STOP" button.
After this, the application should run properly.
In the editor MainActivity.java file should be open/in focus.Then run your app. It should work fine.
Problem occurs when some other xml file is in focus in the editor eg.styles.xml etc.
click the down arrow next to run button go to run configurations. select target on the tab menu and check always prompt to pick device is selected
Make sure the connected device is responding or if you are using emulator then make sure it's well configured, I had this problem, I changed the usb cable and it worked.
The problem is with the phone: you have to activate the developper abilities of the phone.
On the phone with Jelly Bean (4.2) and newer versions of Android:
Go to "Settings" --> "About Phone" --> tap “Build Number” until you get a popup that you have become a developer (5 or 7 times, count down will decrease ). Then go to "Settings" --> "Developer" --> "USB debugging" and enable it.
Elder versions of Android on your phone: This is usually done from "Settings" --> "Applications" --> "Development" --> "USB debugging" and enable it.
That's it !
Perhaps you will have to reboot the phone (not sure about this).
Then, retry
"adb devices" on your computer console: your phone is on the list, and ready to use with android studio or else !
Good luck now !
Reference :
https://wiki.archlinux.org/index.php/Android
here:
Connect device
I have started a new emulator from 'launch new emulator' . But when I run another project later another emulator is getting loaded . Actually I wanted to use the same emulator itself.I there any option to reuse the same emulator and prevent new emulator being launched automatically.
Instead of Run use Run>Run Configurations>Target>Manual and manually select the AVD that is already launched.
I often have this problem when i both have the physical device( a real phone) plugged in the pc and an emulator. You can put the devices list near the console and logcat views, so you can select here the right device to use (install the app and show the logcat).
Go in window -> show view -> other -> devices.
From there you can select which device to use (if nothing is selected, a new emulator is run following the target option you set following Mangusto's answer)
You can select the emulator that you wish to make default from windows->android sdk manager->
edit the virtual device from that you can select skin you want. or set the dimension.
I think this can help you
Go to Run > Edit Configurations, choose your run configuration on the left side, check Use same device for future launches checkbox.