Not able to create Android Project in Eclipse - android

I'm not able to create a new android project in eclipse.
Whenever I try to create one & reach last screen of the wizard & hit finish button, a empty project (just folder structure) project with the same name gets created in navigator window but the wizard does not go away.
It still has that finish button & nothing happens on clicking it again.
The project created in navigator should have at-least few files for me to start working on it.
Any help?
I'm using eclipse indigo on ubuntu 12.04

try to Use Following Suggestion i'm Not Sure But Might Help you.
1 ) Just go with default launcher image (blue smiley) instead of customizing it and it should work.
2) If you have installed support library>8 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"
also Check this answer for More Information.
Hope it will Some How Help you.

This might happen due to improper instalation..Can you specify what the message/error, it showing when you click finish on your project creation..?
else try to install eclipse again in someother location..
Installation steps-click here

Fwiw, I had this problem and I ended up reinstalling eclipse and the sdk, but I instead of installing them separately, I installed bundle:
http://developer.android.com/sdk/installing/bundle.html
and I don't get have this problem anymore.

Related

How to create a new PhoneGap Android project in Eclipse "Juno" on Mac?

I recently reinstalled my OS, and used to have a PhoneGap / Android project. Now I want to use it again, so I reinstalled Eclipse and the ADT plug in. So far so good. Now the instructions say:
"Choose New > Android Project"
However, Android Project doesn't show up under new projects, like it used to.
http://www.adobe.com/devnet/html5/articles/getting-started-with-phonegap-in-eclipse-for-android.html
I downloaded phonegap-2.6.0, but perhaps it isn't connected to Eclipse... what do I do at this stage to get Android Project to show up?
If there is no 'Android Project' under the menu it is not about PhoneGap it is maybe about ADT, are you sure you installed it correctly ?
And, also you can create Android Project with PhoneGap by using 'command line', then you just go to the same menu:" New > Project " then choose Android Project with existing source choose the path you created before by command line and that's it.
edit1: Make sure you locate true directory for 'android-sdk-mac_x86'
edit2:this is how you create Android project by using Terminal
/path/to/cordova-android/bin/create /path/to/my_new_cordova_project com.example.cordova_project_name CordovaProjectName
I had a similar problem. For me, Eclipse wouldn't respond when I clicked Finish when importing source from a phonegap project.
I later found that I had mentioned an incorrect path to the android-sdk.
Check if that is your problem.
If it is, here is how you change it:
In Eclipse IDE, click on the Window menu and then Preferences.
A pop-up will be opened.
On the left pane, click on Android (click on it, not on the + sign beside it).
In the field SDK Location, click Browse and point to the location of your android-sdk.
You are done!
Hope that helped.
EDIT:
I am using Eclipse Juno, but the options must hopefully be pretty much the same for other versions too. Please comment if this is incorrect.

Cannot create a new android application on eclipse

I am a beginner to android development,I have downloaded adt-bundle-windows-x86_64 with android 4.2 and started the eclipse version(Android developer tools) provided with it.But when I click finish after filling all the details in new android application dialog box,the finish button doesn't seem to respond at all.At the first click on finish button an application is created but no java files in it and the dialog box stays still.At least the android 4.2 library is not in the application.src is also empty.
I'm working with Windows 7 64bit and JDK 1.6 64bit.
Any idea on solving this?
http://developer.android.com/training/basics/firstapp/creating-project.html
http://developer.android.com/tools/help/adt.html
http://www.chhitizbuchasia.com/articles/chhitiz/2011/02/Setup%20Android%20SDK%20With%20Eclipse.html
http://developer.android.com/sdk/installing/installing-adt.html
Cannot create a new Android Project using Eclipse
install android sdk manager
step1
step2
step3
install the following sdk to perform the application
Download ADT plugin
http://developer.android.com/sdk/installing/installing-adt.html#Download
BASIC STEPS
http://blog.teamtreehouse.com/the-one-stop-android-sdk-installer-you-always-wanted
Best Jvm setting
Eclipse is not that much robust IDE.If nothing can solve your issue.try to restart Eclipse and your Computer.
and yes,before restarting just update the packages.
Go to SDK Manager, and install available updates for following packages.
Android SDK Tools
Android SDK Platform-tools
After updating,it will be look like this,
I just got mine past this bug; hopefully yours will fix too?
On the screens with menus to select from, where one item is greyed (selected?) as default:
Deliberately click the item, to ACTUALLY select it (it turns dark blue or something).
Mine apparently got caught up on the "Make activity" (or whatever) page, and until I went back and assumed that the default had failed to select it, I was unable to choose finish (even though it clicked, looked as though it was going to do something, and then didn't go).

Eclipse cannot find Android Support Library

I am an experienced programmer but new to Android, hence using Eclipse for the first time.
Unfortunately I cannot get my first project off the ground. I get as far trying to create the project when the following sequence happens.
A screen arrives titled 'Install Dependencies' telling me that the required version is 8 and the installed version is 'Not installed'
I click on the Install/Upgrade button and something must happen because Android SDK Manager pops up and I get a whole series of 'Fetching:' messages.
The next screen asks me to Choose Package to Install and the only option is Android Support Library, revision 10. This doesn't bother me as I presume 10 is better than 8 so I hit the Install button.
This is where it all goes wrong as I get a red message saying:-
File not found:C:\Program Files (X86)\Android\android-sdk\temp\support_r10.zip (Acces is denied).
Sure enough, when I check this folder, it is empty.
Now, something must have happened as as SDK Manager did a whole lot of fetching and must have put these files somewhere.
I am quite happy to find them and put them in the correct folder but the question is
What is the name of the files that I am looking for?
Run SDK Manager as administrator and then install Android Support Library from Extras
Download the sdk manager seperately and install files from there. put it in a place which is accessible to you and then point your eclipse android directory to it. tools>options>android sdk
Run eclipse as Administrator. This is the solution.
Try running your application (Eclipse) in Admin Mode.
Right click on the Eclipse app, and choose "Run as Administrator"
This will fix your problem.
properties >java build path >click library tab > add jars > add jars from the support library.

Unable to create new Android Project in eclipse since 4.1 sdk update

I just installed the new SDK update since the 4.1 update (windows)
Now, In Eclipse when I try to create a new project I can follow the wizard to the end and when I click the "finish" button i see the new project in the package explorer but now i have the problem:
A) the wizard doesn't close
B) when I click cancel to close it I see a completly empty project, as in ... NOTHING not even the eclipse generated R files.
How to fix it?
I'd really like to create a new project
Had the same problem yesterday. Don't know exactly what helped, but restarting Eclipse might have been it. Also, though eclipse doesn't find any updates, choosing "Install new software" and selecting the ADT-Plugin Server (https://dl-ssl.google.com/android/eclipse/) installs a couple of new things, so you might wanna try that too.
Turns out it really only was the bug in the text option when you create launcher icons.
It is now working because I chose something different.

Not able to create new Project with ADT version 20

I have recently updated my ADT and it is now ADT_V20. I have also updated my SDK platform tools as well. But I am not able to create new Project through Project wizard from Eclipse.
I have Eclipse Helios latest version. and It was working well with old ADT versions.
In the project wizard I have reached upto Install Dependencies screen, where "Next" and "Finish" buttons are disabled. I have tried to "Install/Upgrade" new version as shown in the wizard and that process is completed successfully . Still I am not getting "Next" or "Finish" buttons enabled.
This same thing happens on the other PCs as well.
Could anybody please help me ?
Thanks
Looks like you can get around this issue by uninstalling the Support library from the SDK manager, then reinstalling at the prompt in the wizard. I had the same problem you did, and this solution worked for me.
Source: http://code.google.com/p/android/issues/detail?id=33859
In the new Android Project Wizard on the second screen where is says "Select whether to create an activity, and if so, what kind of activity"
Simple un-check the Create Activity, A new Blank Activity will be enabled to be created. -
Click Finish.
They might push a fix for the issue you have highlighted soon.
I have come across some more issues related to Ant build.xml not able to find "com.android.ant.NewSetupTask" due to this upgrade to ADT20
After installing ADT version 20, I have this problem creating a 1.6/API 8 project now that the newer (version 20) SDK is installed.
Would one of the experts try creating this even WITHOUT the 'activity' please?
I cannot complete with the blank activity checked (due to the missing API 8, which tries to install the already installed API 9 when asked to update), NOR can I complete with NO activity selected.
In the latter case, i.e., uncheck the create Activity box, the Finish button appears, creates the project partially, but not one that will build (as the older versions would do even with an old API.
Also, there is no actual indication that the "Finish" has worked -- you must look over in the browse pane to see the new project even though the dialog remains.
If any of the above did n't solved your problem please do one thing, try DELETING org.apache.log4j_1.2.17.jar from eclipse/plugin directory !!!!
In MACOSX, with Eclipse Helios IDE, this solution didn't work for me. I solved the problem uninstalling the components by the SDK tools and installing them again by the same SDK manager. I tried to reinstall the components by the same new project dialog, but didn't work for me, my only solution was that, uninstalling and reinstalling from sdk manager.
I hope this solution works for you :)
My solution is that I found out that Android Support Library was not installed on my computer (I didn't even have an Android folder under extras/. I ran the SDK Manager as Administrator, selected this and installed it. Then I tried creating a new project and I got the same error. I clicked Install/Upgrade and the Finish button became enabled. The next time I created a new project, I didn't get this error.
In my case the app had been created, but I didn't see it as it was completely obsqured by the welcome splash screen. When I didn't see it, I tried to create the app again, and it was failing to finish silently. Only when I ventured to close the splash screen did all become clear.

Categories

Resources