Eclipse android not creating activity - android

I've just tried to get into Android development, but somehow I can't get my project working properly. I followed the "Getting Started" guide (http://developer.android.com/training/basics/firstapp/creating-project.html), but I'm stuck on building my project.
Everything is going fine but the creation of my MainActivity. I've left all the settings regarding the activity to default. Somehow when I create my project, there's no activity definition in the AndroidManifest.xml.
I've two potential solutions, but none of them seem to work. The mainly suggested workaround is to update the ADT Plugins through the correct repository (Eclipse android project not creating blank activity). However in my situation the updater states that I've already got these packages installed.
The other possible solution was to remove the support library from the SDK manager. After that, trying to create a new project in Eclipse should prompt me to install this package. Somehow I don't seem to get this prompt. (https://stackoverflow.com/a/11260656/3786210).
Are there any other possible solutions I could try out to get my project correctly built? Thanks in advance!
Additional information:
Windows 8 (64 bit)
ADT packages version: 23.0.0.1245622
Target SDK and Compile With: Android 4.4 (KitKat)

You should just yse IDEA instead of Eclipse
http://www.jetbrains.com/idea/download/
Eclipse sometimes can produce such problems

Related

Android ADT is not recognized in Eclipse Neon.2

I have downloaded ADT Plugin for Eclipse. I don't see Android anywhere either when creating a new project, Preferences or "Customize perspective"
I have searched for the answer but I couldn't find it. The only thing that I didn't try is opening "command group availability" tab mentioned in forum not showing Android And AVD manager in eclipse because I can't see it at my setup.
I'm using Eclipse Neon.2 with JDK jdk1.8.0_121. I didn't add a PATH variable in my system. Not sure if I have to or not.
Android ADT doesn't seem to work for me in Neon too (same errors and long time search on startup without results)
There is a new Eclipse Android dedicated IDE now at https://eclipse.org/downloads/packages/eclipse-android-developers-includes-incubating-components/neon2 Must be installed in a separate folder with separate workspace (and renamed if needed) and all existing Android projects can be moved there. Afterwards i uninstalled ADT from the original Eclipse folder.
There is Installation Instructions for Google Plugin for Eclipse 4.6 (Neon)
https://developers.google.com/eclipse/docs/install-eclipse-4.6
It appears that either Eclipse Neon.2 stopped supporting ADT or that it has issues with it. I went back to Eclipse Neon.1 and I can find Android references all over, so I think the issue is something to do with Eclipse Neon.2.
Thanks to all of you who tried to help.
UPDATE:
It appears that for Neon.2 there is a separate package for Android that you can find here:
http://www.eclipse.org/downloads/packages/eclipse-android-developers-includes-incubating-components/neon2

Can't create Android Application Project in Eclipse

I have a problem with creating Android Application project in Eclipse on my Mac. When I start Android Application Project Wizard after clicking "finish" in the last step, this window appears:
I've been trying to solve this for hours, but none of the solutions I've found on the internet worked for me (including this). I didn't try to reinstall eclipse itself, but to I don't want to do this. What's the solution to my problem.
UPDATE:
I removed Eclipse and sdk from my computer and downloaded the whole ADT Bundle from here and switched workspace but actually I am still getting the same Errors.
What I found up on the internet was that you could have upgraded your java. So this occurred. The solution to this problem for Mac is to edit the Eclipse.ini file to use java 1.6 .The code Below will work :
-vm/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java
Start with a clean slate. Unistall Eclipse and redownload - Eclipse is a very big program and can be very buggy at times for no reason. While it is not the quickest solution, ensuring that Eclipse was properly downloaded and installed will provide a good foundation for the future development of you Android applications. Did you install Eclipse just for Android, or did you have a pre-existing copy and want to install the Android SDK?

What can I do to fix a Android SDK Null Pointer Exception error?

I am having a problem creating my first Android App.
I installed JDK 7u21.
I downloaded and extracted Android SDK Build: v22.0.0-675183.
I started Eclipse and created a new Android Application Project.
When I click Finish I get the following error:
Errors occurred during the build.
Errors running builder 'Android Resource Manager' on project 'Steve'.
java.lang.NullPointerException
I have search and couldn't find anyone with the same problem.
Did I install something wrong? Is something missing from the SDK? What can I do to correct this error?
In my case I switch from Android SDK 64 bits, to Android SDK 32 bits. Now it's working perfectly.
Have the same problem after updating SDK to 22. For me, it seems to be a backward compatibility fail by Android vs. Eclipse (on my side additional with Maven).
See also: Eclipse Upgrade Not Working
So not your fault. Try f.e. IntelliJ for the moment. There is also a specialised version, called Android Studio but this is not that stable as the original.
The Android guys also deliver a complete package for Eclipse + ADT-Plugin, but not sure, whether this solves the problem.
I've run into the same problem. Every new project, imported or otherwise throws that exception.
It appears to be a bug with Eclipse, and the simplest fix for me was to re-extract the ADT bundle, and replace only the eclipse directory. It'll take forever to download the SDKs if you replace the SDK directory too.
ADT bundle does not work with the Oracle Java 7 SE JDK, failing with an NPE in the Android Application Project wizard.
Installing the Eclipse Plugin
Here's a workaround that lets you keep Java 7 as the default but run ADT with Java 6 when you have both installed. Bring up $ADT_DIR/eclipse/Eclipse.app/Contents/MacOS/eclipse.ini in an editor. Before the -vmargs line, insert these two lines:
-vm
/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands/java
or any place your java is installed, for example on my computer:
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java
Android issue tracker - answer
This works for me:
For those who experience the same problem, here is how i fixed it: After a couple of try and errors, I found out the problem was about creating an activity in the create project wizard. If you simply deselect the create activity button at the 2nd step of the wizard, it creates the project succesfully. Then you can add an activity to your project easily.
Source:
https://code.google.com/p/android/issues/detail?id=68755

Eclipse wont recognize Android support library revision 9

I recently downloaded all the latest updates for my eclipse/Android plugins (before the upgrades everything worked fine). I got everything to work except when i try to create a new project I get a message that I need Android support library revision 8. I click Install/Upgrade and It proceeds to download and install the library. When it finishes the tiny download/install window disappears but the window which informs me that i need Android support library revision 8 remains open and i cant click finish to create new project. I tried closing the window and eclipse and trying it again but it always leads me to the window which states I need the Android support library revision 8. I didnt move eclipse to any other location and I am wondering what is wrong.
I had a problem before with an ! in my eclipse path and eclipse wouldnt work because of exit error 13. I posted a question about it before. My answer explains what has happened and the easy fix.
I am wondering what is wrong now. Do i need to manually link the support library?
Im really frustrated because its taking me forever to set this up.
Update:
I tried restarting eclipse and reinstalling the library multiple times.
I upgraded the android sdk tools and sdk platform-tools before i installed the support libraries.
Like these similar issue i'd for 2 days ago. Whenever, i'm trying to create a new project its showing me like below
For, this i've downloaded that support library using Install/Upgrade and in my path E:/Android/Android-Sdk/extras/android/compaitability I've changed the name of compaitability as support and after just restarted my Eclipse. Its working fine.
Hope these helps you.
Try updating android sdk tools and sdk platform-tools and restart eclipse? ADT has dependencies on these.

Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa

I am new to the android development and when i create a new project using eclipse juno on mac OSx i got an error at runtime Failed to instantiate com.android.menubar.internal.MenuBarEnhancerCocoa
And yes on the layout file it also says- The project target(Android 4.1) is not properly loaded.
Anyone please help me how to get out of this. Thanks in advance..
And yes everything was setup properly SDK and all, because this whole setup is running properly on one of the other system.
I had the same problem but managed to resolve it. com.android.menubar.internal.MenuBarEnhancerCocoa - was not in the SDK that was linked to Eclipse install (I have multiple for various reasons - e.g. AppEngine not supported in latest Eclipse). There were a number of steps I had to do to resolve this (so any one of them may be the actual fix or a combination may resolve the problem).
Here's a checklist :
If you have installed Eclipse - click the Android SDK manager icon. Ensure it is pointing to the latest Android SDK (R20 as of writing)
As it's a new Eclipse+SDK - add the build targets by selecting from the list of targets that appear in the SDK manager. Also add Android support tools
Restart Eclipse. When asked about he workspace - create a new one. I thought some of my problems would be linked to old projects.
The problems should have gone away. One final thing is, once you create a project - check your certificates have not expired. There's another thread on updating the debug certificate (Delete your keystore located in ~/.android/debug.keystore then restart Eclipse.)
Create a new AVD target.
Hope those things help.
It appears to me the com.android.menubar.internal.MenuBarEnhancerCocoa is only there to make the android app feel nicer if it's run directly. Then preferences and about will be in the application menu. If you run the android sdk manager from eclipse, then eclipse will take over that part of the application menu.
Although it doesn't sort out the issue it may be useful anyway. There's the web page with the sources MenuBarEnhancer where there's the call to instantiate the com.android.menubar.internal.MenuBarEnhancerCocoa class.

Categories

Resources