11

I downloaded Eclipse Juno Java EE edition and installed ADT plugin. I created a new Android Application Project from Eclipse and in the wizard I created an activity called TaskariActivity. After I pressed finish, it created the project but not the activity and the wizard didn't close. I pressed cancel. No activity or anything in the src folder. I created a new activity by right clicking on src, selecting new -> other -> Android -> activity. I selected BlankActivity (as earlier when I was creating the project), selected the earlier created project in the Project combo box. I set the Activity name as TaskariActivity, layout name as activity_main and title as TaskariActivity. Next I selected navigation type and I set it to Tabs + Swipe (I thought this would make me tabs and everything I had to do would be just inserting the elements and the actions for them). I pressed next, nothing happened. Finish didn't also do anything. I pressed cancel and an activity wasn't created.

So, how can I create an Android application like in the earlier version of Eclipse? It automatically created the activity and it was ready be run out of the box. Now it won't generate any files and the new activity wizard doesn't work. Help?

Akram
  • 7,548
  • 8
  • 45
  • 72
MikkoP
  • 4,864
  • 16
  • 58
  • 106
  • I have the same problem with Eclipse 3.7. If I create a project without an activity, it works but there are no files in src or layout folders (not much use!) If I select Blank Activity, then the wizard tells me, I need support library version 8. I already have version 9. Totally stuck now – NickT Jun 29 '12 at 12:51
  • Having the same problem, I don't get any error message the activity dialogue just stays. An entry for the new activity is created in the manifest but the label is not added to strings.xml and no activity is created in the src folder. I tried updating the support library, the SDK manager and Eclipse itself. I restarted Eclipse and still nothing. What is strange is that I can do it for some projects but not for others.. – idunno Jul 16 '13 at 16:10

5 Answers5

6

Just go with default launcher image (blue smiley) instead of customizing it and it should work ;)

Deepak Rajan
  • 136
  • 3
  • 2
    Not really relevant to the new activity wizard of an existing android project so it's not really a solution – jamesc Jan 13 '13 at 11:03
4

Okay, this worked for me: "Help" -> "Install new software" and install (this will update it) from this url: https://dl-ssl.google.com/android/eclipse/ I guess the Android website doesn't have an up-to-date version of ADT? Not sure where you're supposed to download the latest version from

john Peralta
  • 771
  • 5
  • 3
3

Workaround that worked for me (If you have installed support library>8 and still get the error msg)

  • Delete the support library from the SDK manager
  • Create a new project & install the support library by clicking on "Install / Upgrade"

Check this answer.

Community
  • 1
  • 1
rajpara
  • 5,203
  • 1
  • 29
  • 46
  • 1
    This give me a completely empty project, no sources or xml produced. Not really a solution. – NickT Jun 29 '12 at 12:52
  • 1
    The edited version didn't help either. By the way, the project explorer looks very strange. http://img832.imageshack.us/img832/1194/taskaritietokanta.png – MikkoP Jun 29 '12 at 18:35
  • 1
    have u restarted eclipse , BTW check out this http://code.google.com/p/android/issues/detail?id=33859 this also mention the same – rajpara Jun 29 '12 at 18:38
  • I found workaround(see comment 13): http://code.google.com/p/android/issues/detail?id=33859#c13 – Helpa Jun 30 '12 at 17:24
  • cool , at the end you resolve your problem. Update your answer here – rajpara Jun 30 '12 at 17:28
  • And how I replace the existing files? I have only one copy and it's not working. – MikkoP Jun 30 '12 at 18:33
  • @MikkoP, try to reinstall sdk or install it in another folder. – Helpa Jun 30 '12 at 19:16
  • delete the old version before this? – Helpa Jun 30 '12 at 20:26
  • Yep, I removed the SDK, downloaded it again and installed everything again. – MikkoP Jul 01 '12 at 07:56
  • I reinstalled the SDK, downloaded new one from Google's site. If I select Build SDK as 4.0.3 and minumum as 4, it works. If I set minumum as 2.3.3, it doesn't... But if I select 4.0.3 and 4.0, I can't select any navigation style or change the activity name.. – MikkoP Jul 04 '12 at 10:49
1

I solved this same issue by updating the support library (through the Android SDK Manager, it is located at the end of the list under Extras > Android Support Library) from rev.8 to rev.9!

After updating, Eclipse is now able to create projects as expected.

rjam
  • 577
  • 6
  • 19
  • I think that the solution is just related with updating your current version, whatever it is (mine was 8), to the latest (which is rev 9). The thing is that apparently projects are now being created with the support library included when you set a lower minimum-sdk version, like 2.2, but only the latest support lib is included correctly..If you don't have rev9, I'd try to install it and see how it goes, if you already do, then I'm sorry, it's probably something else. – rjam Jul 06 '12 at 09:10
0

I had the same problem and I could create the project changing the "minimum required SDK" to 3.0 Honeycomb.

What is the versión you have selected?

blfuentes
  • 2,731
  • 5
  • 44
  • 72