Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Today I have update Android SDK tools & eclipse. Current SDK tools 24.0.1, Android development Tools 23.0.4.1468518, eclipse version 4.4.1. After update SDK & eclipse I create new project. In this project src folder is empty & res/layout folder also empty, activity & xml files are not creating. I have to manually create it.

I seen my answers like Link 1, Link 2 etc.

Answer like:- " Try this "Help" -> "Install new software" and install (this will update it) from this url: https://dl-ssl.google.com/android/eclipse/"

But I have already update it.But not solve my problem. So, How to create activity & xml automatically?

like image 514
Jigar Shekh Avatar asked Dec 13 '14 10:12

Jigar Shekh


2 Answers

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.

like image 196
gprathour Avatar answered Oct 05 '22 23:10

gprathour


Try running your Android SDK Manager again, install any available updates for the Tools category and after that select Help > Check for Updates from the Eclipse menu (installing any detected updates here too which should then restart Eclipse).

I was getting the same problem before and it started working again after I have Android SDK Tools version 24.0.2 installed after the above process.

like image 39
Joe Avatar answered Oct 06 '22 01:10

Joe