Src Folder in Eclipse Is Empty (Mainactivity Class Not Created) After Creating a New Android Project Using Eclipse

Eclipse does not generate New Activity after I download the latest SDK

I got the same issue as you do and I have a working solution which is I already posted here

Eclipse doesn't create Main Activity and layout

Using this Eclipse Update http://dl-ssl.google.com/android/eclipse/ did not work for me. I notice this problem when I download the latest updated SDK
Sample Image

Luckily the solution to my problem is very easy.
Sample Image

By Selecting Empty Project instead of Blank Activity makes it working.

Eclipse doesn't create Main Activity and layout

I had the same problem yesterday after updating the latest packages on the Android SDK Manager.

Fixed it by updating the Eclipse plugin: Run Eclipse > Help > Install new software > Paste the URL https://dl-ssl.google.com/android/eclipse/ then press Enter. After updating the plugin, I created a test project with the main activity and menu was created by default as normal.

Eclipse create new android application project activity_main.xml file missing from layout folder

Solution :
I have been struggling with this issue for 2 days now. Searched through countless posts and countless suggestions.

With the new ADT kit I was selecting "Blank Activity"

This morning I tried "Empty Activity"

This creates the Main activity

Eclipse ADT Bundle won't create src files and layout files

Solution :
I have been struggling with this issue for 2 days now. Searched through countless posts and countless suggestions.

With the new ADT kit I was selecting "Blank Activity"

This morning I tried "Empty Activity"

This creates the Main activity

Eclipse src folder empty

Because it's a blank canvas!!

Right click on the src file New->Class

Give the new class a name and a package and you're away, you can start coding.

If you want to include libraries create a new lib folder at the same level as the src folder and copy any jar folders into this folder. Right click on the .jar files and click Bukd Path->Add to Build path, you'll now be able to import and classes contained in this jar file(s)!!!

Eclipse not creating new Activity and xml layout file (issues started after updating eclipse and sdk)

Latest

As I already said that ADT 23.0.4 and SDK 24.0.1 are not compatible to each other.

We have got another update to of Android SDK to 24.0.2 (May be their team read our this question and released an update so quickly). However this update has not been documented yet on this page but still you will be able to see it in your Eclipse's SDK Manager.

I updated my SDK to 24.0.2 and now it is working fine. You too can try to update your Android SDK to 24.0.2 and hopefully everything will work fine.

Older Answer

The ADT Plugin for Eclipse and Android SDK both should be compatible to each other for making Eclipse do such things automatically.

But it seems like ADT 23.0.4 (Released in October 2014) and SDK Tools, Revision 24.0.1 (Released in December 2014) are not compatible to each other.

We should expect an update to ADT plugin soon which will be compatible with SDK tools 24.0.1.

You can check from the documentation:

For SDK Tools, Revision 23.0.4 (October 2014) they have mentioned the following points.

Android SDK Platform-tools revision 19 or later.

If you are developing in Eclipse with ADT, note that this version of SDK Tools is designed for use with ADT 23.0.4 and later.

If you notice,

But for SDK Tools, Revision 24.0.0 & 24.0.1 (December 2014), They have only mentioned

Android SDK Platform-tools revision 19 or later.

And if you check this document then you will find for SDK 23 or earlier with each revision the compatible ADT version was mentioned but only with 24 they have not mentioned anything yet. So the compatible version is yet to come.

I had same issue but in the end had to undo my update to SDK tool to back to 23.0.4.

If you want to undo your update you can follow the following simple steps:

  1. Download the older ADT plugin manually.
  2. Extract the contents and copy the tools folder from there.
  3. Go to your SDK installation directory and replace the tools folder.

Your SDK will be back to 23 version and everything will start working again.

Eclipse doesn't generate MainActivity.java & activity_main.xml

As one guy said

I had the same problem even though I downloaded the Android SDK and did a clean install, but I just resolved it. I tried to click "Help" -> "Check for updates", and then I got a pop-up message saying everything was up to date, but after further research it appeared to me it wasn't up to date. What you need to do is click "Help" -> "Install new software" and install (this will update it) from this url: https://dl-ssl.google.com/android/eclipse/

See here thread https://code.google.com/p/android/issues/detail?id=66647



Related Topics



Leave a reply



Submit