1

I installed the ADT (Android Developer Tools) plugins for eclipse and directed it to the correct Android APK files. I also have Android Virtual Device set up.

Nothing happens when I click "run as android application," but my AVD runs fine and is actually very responsive.

This is all Java in eclipse by the way.

enter image description here

Right click the pic, and open it in a new tab to see the larger version.

EDIT: Fixed, all I had to do was click run dropdown menu on eclipse, then click run again :)

user3133300
  • 607
  • 4
  • 13
  • 23
  • 4
    Please, note that there's no beginner, intermediate, advanced nor any other level here in the site. You ask as a professional, you get an answer from another professional. – Luiggi Mendoza May 02 '14 at 19:18
  • 1
    You directed Eclipse to the correct Android APK files?? You shouldn't have to do that. Eclipse needs the original files for it to generate its own APK. Please try creating from scratch a blank "hello world" android project from Eclipse and try to see if that will run. Also, make sure to close any unrelated project to the one you're trying to run. And look in the Problems View of Eclipse to see if they are any errors there. – Stephan Branczyk May 02 '14 at 19:35
  • I'm reading off a "android beginners" book, it told me to download the Android APK directory, so I did and directed ADT to my APK directory, which it accepted. The blank "hello world" is exactly what I'm trying to run. – user3133300 May 02 '14 at 19:44
  • *Android SDK directory – ataulm May 03 '14 at 17:53

1 Answers1

1

Try installing it manually to see if adb is working. This is time consuming, but is a workaround. See this page on how to do that: How to build an APK file in Eclipse?

How to install an .apk file on the emulator:

Start the console Run (Windows + R) then type cmd, and move to the platform-tools folder of SDK directory. this is located wherever you've placed the adt folder.

Paste the APK file in the platform-tools folder.

Then type the following command: adb install example.apk

Modify example.apk to the name of the apk you've chosen.

Community
  • 1
  • 1
ElectronicGeek
  • 3,312
  • 2
  • 23
  • 35
  • Thanks for the suggestions, it already had the intent filters. I've attached a screenshot of my entire eclipse window right before i click "run as". – user3133300 May 02 '14 at 19:42
  • Have you tried compiling the apk? If that works, then there's a problem with adb/eclipse, otherwise it's your app. Then we can narrow down the problem. – ElectronicGeek May 02 '14 at 19:43
  • Sorry, I've no idea how to compile the apk. If you want to zoom in on the screenshot, just right click, open in new tab. – user3133300 May 02 '14 at 19:44
  • See this article for that: http://stackoverflow.com/questions/4600891/how-to-build-an-apk-file-in-eclipse Then I can narrow down the problem/give you a workaround. – ElectronicGeek May 02 '14 at 19:45
  • Thanks for the article: I built the APK file. How do I compile it specifically? Sorry that you have to walk me through this, I'm really new to Android Development. – user3133300 May 02 '14 at 19:53
  • I edited my answer to include a tutorial. Also, if you've built the .apk file, it's already compiled, all you need to do is install it. – ElectronicGeek May 02 '14 at 19:59
  • Thanks for the help, I think I may have the wrong APK's. – user3133300 May 02 '14 at 22:48
  • You're welcome. Feel free to ask if you still have a problem. – ElectronicGeek May 03 '14 at 01:22
  • Fixed, all I had to do was click Run in the dropdown Eclipse menu, then click Run again :) – user3133300 May 03 '14 at 17:35