Eclipse (Android): nothing happens when you click Run / Debug

I just installed (extracted) the ADT package for the eclipse + android SDK correctly, and also installed a new AVD, which currently works on my background and looks fine.

my problem: after creating any application and clicking the Run or Debug button nothing happens. I don’t see any start message: (nn%) .. 'at the bottom, and AVD does not execute at all - nothing happens! I have no idea I have what the problem is, but some time ago I installed it the same way and saw this problem earlier.can someone advise me what to do?

+7
source share
6 answers

right-click project-> run as β†’ run configuration, check if the default startup function is selected, and on the target tab check "always ask for device"

+14
source

If the button works fine the first time and doesn't work later, try this.

Open Devices using Window > Show View > Devices .

Then in the devices under your emulator, find the name of your application. Select it and press the red "STOP" button.

After that, the application should work correctly.

+2
source

In the MainActivity.java editor, the file should be open / in focus. Then run the application. It should work fine. The problem occurs when some other XML file is in focus in the eg.styles.xml editor, etc.

+1
source

Click the down arrow next to the start button to start the configuration. select the target in the tab menu and check whether the selected device is always selected.

0
source

Make sure that the connected device is responding, or if you are using an emulator, and then make sure that it is configured correctly, I encountered this problem, I changed the USB cable and it worked.

0
source

The problem with the phone: you need to activate the capabilities of the developer of the phone.

On a phone with Bean jelly (4.2) and newer versions of Android: Go to "Settings" β†’ "About phone" β†’ click "Create number" until a pop-up window appears that you have become a developer (5 or 7 times, the countdown will decrease ) Then go to "Settings" β†’ "Developer" β†’ "USB Debugging" and turn it on.

Older versions of Android on your phone: this is usually done from "Settings" β†’ "Applications" β†’ "Development" β†’ "USB Debugging" and turns it on.

What is it!

You may need to restart the phone (not sure about this).

Then try "adb devices" on your computer console: your phone is listed and ready to use with android studio or more!

Good luck now!

Link: https://wiki.archlinux.org/index.php/Android Here: Connect the device

0
source

All Articles