New Android Application Project - layout file and

2020-05-03 12:55发布

Environment: Eclipse ADT Build: v22.3.0-887826, Windows 8.1 Host.

I make the following steps to create new Android project:

File - New Android Application Project. Application Name: Sample, all other fields default: Minimum SDK 8, Target 18, compile with 19. Next.

Create custom launcher - off, Create activity - on. Next.

Blank activity, Next.

SampleActivity, Layout name activity_sample. Finish.

Finally, I open package explorer, Sample - res. Layout directory is empty. src directory is also empty, main activity class is not created.

标签: android adt
3条回答
Emotional °昔
2楼-- · 2020-05-03 13:05

Go to following:
'Help'->'Install New Software' and type https://dl-ssl.google.com/android/eclipse/

Select ADT option and install it. It will update the ADT.

Even I had the same problem and my issue got resolved with it!!

查看更多
等我变得足够好
3楼-- · 2020-05-03 13:09

Try updating ADT to 22.6 using this link Android Developer Tools Update Site - http://dl-ssl.google.com/android/eclipse/

查看更多
干净又极端
4楼-- · 2020-05-03 13:11

I had a similar problem on Mac OsX 10.9.2 and updated to

Android Developer Tools 22.3.0.v201310242005-887826

which is the same version that Alex had the original problem on. For me, the updating fixed the problem, so I don't think it was the version of ADT that was causing the problem. Something else in the update process cleared the cause of the problem. Now, when I create a new Android project, the layout files and activity class is created, as expected.

查看更多
登录 后发表回答