Eclipse doesn't start android app in emulator - java

I'm right at the beginning of android programming.
I created an AVD that works just fine when launching via the AVD-manager.
I also "created" a hello-world app as a little test.
When I try to run the app as an android app, nothing happens. No output in the console, emulator doesn't start (or launchs app when already started), no message, nothing.
Can anyone help me?
Thanks a lot

I had the same problem. I think its because u created a project with a blank activity. so when the app starts it doesn't have anything to do..
to solve the issue just add an activity, intent and a category to your manifest file and run

Not sure if this will help you but, during our android lab sessions some computers had a slimier problem. How it was fixed is by doing the following:
Next to the "Run as" button, there is a small arrow, click it.
Select "Run configurations".
On the left, double click "Android Application".
There should be 3 tabs appearing on the right (Android, Target, Common)
Under "Android", browse and select the project you want to run.
Launch Action: select "Launch Default Activity".
Click on "Target" tab.
There should be an AVD table with the Android virtual devices you created through the manager. In case there isn't, hit refresh or click on "Manager" to make sure you have created it and then refresh again.
if there is an AVD, it should appear with a small check box on the left side of it, click it and then click on "Run".
This fixed the issue for most students, hopefully it will in your case as well. If not then I hope someone can answer it for you.

If you are using Windows, Give your SDK path in Eclipse as Windows->preferences ->Android->SDK Location
here you give your sdk path.

Related

Device does not debugging on Android Studio

I start the Debugger and on External Device donĀ“t make nothing, example:
-Open the app on Run
-Open the app on Debugger
-Result on Watches while Debugging
To resolve this,
You need verify before, your module apps configuration
The Launch Option is disabled, that significcate when you compile the source code, don't make nothing.
You need click on Options, and select "Default Activity", after click "OK" or "Finish"
This worked to me,

android studio 2.2.3 run button disabled

I have a big problem with my Android studio, I followed many tutorials and it doesn't work .
I need your help...
Here are some photos to describe my problem:
Try building your project.
Make sure your project's name doesn't have any special charactrers in its name.
Try creating another project and copying everything you did into it.
Hope I helped.
click the button(below menu item Run) left of Run Button, if possible, then choose app.
or
Rebuild and Run.

Android SDK eclipse installation not working properly

When I install the android SDK from here http://developer.android.com/sdk/index.html
my file at the time was like adt-bundle-windows-x86_64-20140624.zip. When I ran it, the eclipse looked very different. The loading screen showed Juno instead of the android loading screen. The icon on the bottom task toolbar (windows 7) was a unknown program icon and not the eclipse icon. When it opened, it looks like this image below.
If I try to create a new android activity file, after I click finish, I expect the file to be created, but nothing happens. Also if I go to the xml layout file and go to the gui explorer, I get a bunch of errors saying some widgets didn't load. And then it doesn't show the preview.
Some things work like intellisense and being able to run app on phone.
Im not sure if this has to do with corrupted preferences, so I deleted the files in here
Eclipse Workspace\.metadata\.plugins\org.eclipse.core.runtime, but it didn't help.
Does anyone know whats wrong and how to fix it?
Thanks.
I also installed the same version adt-bundle-windows-x86_64-20140624.zip last week. It worked fine for the most part. The different icon and splash screen for Eclipse is to be expected. There were some oddities, like the link to SDK manager still pointed to my previous ADT installation.

"Run as" android application is missing

SDK and ADT are installed and working, but when I run some android code, the "Run As" panel is empty. I need to go to Run configuration, click on Android application, make a copy, put the name of my project on the copy and the run it. Then it run properly on the emulator. How can I add the "android application" item menu inside the run as menu?
You could Right Mouse Button Click(on activity class) > Run As > Run Configurations. Next is Right Mouse Button Click on Android Application > New. Now you should add your virtual emulator in Target. It works in my version of IDE.
Now you can use this run configurations with your own settings.
"Run as Android application" is available if u run the project (right click project name and u have that option) , and not a specific activity file ..
Just select Run > Run in eclipse and select android application.The Eclipse plugin automatically creates a new run configuration for your project and then launches the Android Emulator.
Maybe this is a bit late to be answering this, but I think my answer is better. The right click is all fine and well, but it is a bit more effort each time than my suggestion.
Right click on the toolbar and click "Customise Perspective..."
On the toolbar structure that pops up find "Launch" (On mine it's the 5th item down - it might vary)
Then you need to tick the "Run " box
After you click "OK" it should be back in the toolbar and in the menu

Android: main.xml error

I'm getting an error when I open my main.xml, I'm not seeing the UI of my app:
Eclipse is loading framework information and the layout library from the SDK folder.
main.xml will refresh automatically once the process is finished.
Do you have fix on it? I tried googling it but nothing worked for me.
It seems yet another Eclipse quirk. There's a solution here:
http://twigstechtips.blogspot.com/2011/02/eclipse-android-development-is-loading.html
And another alternative here:
http://groups.google.com/group/android-developers/browse_thread/thread/065b4e55f0189873
This is caused when you have old jar files in your sdk directory! look here
http://androidbook.blogspot.com/2009/07/when-eclipse-loading-framework.html
if it doesnt solve the issue maybe you can try changing the target to another version of the SDK eg. 2.2 instead of 2.1 to render the view instead
Same thing happened to me couple days ago after updating SDK through android SDK Manager. When I rebooted eclipse, I got a pop-up saying my Android Development Tool (ADT) or a plugin for Eclipse needs update to version 22.6.2
Here is the information http://developer.android.com/tools/sdk/eclipse-adt.html
and click updating ADT, the download instructions are in there.
I copied it out here just in case,
Download the ADT Plugin Start Eclipse, then select Help > Install New Software. Click Add, in the top-right corner. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/ Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS. Click OK. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. In the next window, you'll see a list of the tools to be downloaded. Click Next. Read and accept the license agreements, then click Finish. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK. When the installation completes, restart Eclipse.
It should then work just fine.
Hope this helps.

Categories