In old version of Eclipse and Android SDK when I wanted develop an android app I used to open "New" and then "Android Project."
Now in the new version it changed to Android Application Project and this makes me confused. There are so many opened packages and folders. I would like to only create an android project, not android application project.
I am new and I would like it as simple as possible, something like this:
Not this (newer version of "New Android Project" menu:
The new project wizard in ADT version 20 can indeed be a bit confusing. Suggestions:
In the first screen it is mostly the same other than a change to dropdown lists for the version selection.
If you don't want to see the second screen picking a launcher icon, uncheck "create custom launcher icon" on the first screen.
On the last screen, if you want to make a project that works on older versions without the compatibility libraries (ie, make an old style project) then uncheck "create activity".
If you do File - New - Project - Android you can get at the options for creating from a sample or existing code. If you pick an older target you can pick an older version of the samples.
Ok, found a solution here:
http://droiddudes.com/2012/07/12/unable-to-create-android-project-in-eclipse-with-adt-20/
Delete Android Support Tools (version 9) from ADK.
Run App wizard again -- it will complete that it requires Version 8 -- confirm you wish to install. Version 9 gets (re)installed. Dialog completes.
Next time you run it there are no errors, and if you look in ADT manager it is in there (again.)
Update: Worked for "test" project then failed for my new real project which has SPACE in the name -- changed the PROJECT NAME (not the app name) to remove the space and the wizard completed correctly.
Related
I am trying to create a new Android Application project within Eclipse Luna as follows:
File > New > Android Application Project
However when I try to do so the "Next" Button is greyed out, i.e.:
It is important to note that I am purposely using older versions of the SDK and ADT (Both 21.0.0) as they as compatible with a 3rd Party plugin I wish to use.
Within my SDK manager I get the following screen:
Every time that I try to install the Android SDK Platform tools, SDK manager states that it is installed but it never is. Could this be the cause of my initial problem?
How can I solve this and be able to create an Android Application Project?
EDIT:
When I try to select a compiler there is nothing in the drop down menu:
Install the SDK platform-tools to solve the empty drop-down sub-problem
Select supported Compiler.
as shown below.
I made an app and after many days I want to run it again . Because of my project was on SVN for using the app I follow this steps :
1.File--> New--> Other--> SVN--> Project From SVN ... and so no
But when I right click on the project name to run it there isn't item call "1 android application"
when I want to config it for running ,in Android tab --> Project--> Browser I can't see my project and it's list is empty .
Also I can't find AVD for running on it (I made three AVD already...)
How can I fix it... :(
please guide me.
Thanks ;)
Ensure that your AVDs are running Android version with target API. For example if your project is for API 14+, no AVD with API < 14 will be listen on Target AVD list.
In the comments you told you are not seeing any Android tab in the project properties, you should be seeing something like this:
I would think then, that you do not have the Android SDK well configured, or your project is not set to be an Android Project.
Try re installing the Android SDK. Or creating a new Android project and copy all the files in that new project.
As the title reads, it crashes every time I make a new android app project. It seems to run fine when I make a new Java project, however. The error code i get is: Java was started but returned with exit code: -805306369.
That's all I could post, i can't seem to copy the error message (it's a pop-up, doesn't appear on console)
Just as it's about to load the project, eclipse goes Not Responding for a long time, so I'm forced to close it and I get that error message.
Any help would be appreciated, thank you.
If you're using Eclipse to build Android, do the following in order:
Install the JDK from Oracle. You can get the JDK here.
Install Eclipse (e.g. Eclipse Standard version). As of November 2013, Juno (Eclipse v4.2.2) is the most stable release of Eclipse. Refrain from using Kepler release for now. You can get old, stable release of Eclipse here. Or, new version here if it is stable. Important: When you install Eclipse, do not overwrite an existing Eclipse installed directory but instead create a new directory and install Eclipse there. This would prevent getting libraries mixed up between different versions of Eclipse.
Install the Android SDK. You can get the SDK here. For beginners, choose the installer_r22.3-windows.exe package.
Install the Android Development Tools (ADT). You can get the ADT here.
Start Eclipse.
From Eclipse's menu, select Window | Preferences. Then, select Java | Installed JREs option. Check to see if Eclipse has listed correctly the JDK installed directory created from step 1 above. If not, click Add button and browse to your JDK installed directory. On Windows, this directory is normally found under C:\Program Files\Java\jdk1.6.0_45 (e.g. Java 1.6 release 45).
In Eclipse's Preferences screen, select Android option and check that the directory of the Android SDK Location is correct. It should be correct if you have successfully completed step 3 above.
To create a new Android project, from Eclipse's menu select File | New | Android Application Project. Fill in the required information in the New Android Application screen and click Finish when done.
OPTIONAL: Under Eclipse's Window menu option, there are two Android submenu options: Android SDK Manager and Android Virtual Device Manager.
a. The Android SDK Manager option allows you to install/remove versions and/or components used for Android development.
b. The Android Virtual Device Manager option allows you to create virtual Android devices for development and testing purposes. For example, an Android virtual device with a Target of Android 2.1 - API Level 7 will allow you to test your Android application that will later run in production on devices - phones, tablets, notes - that run Android firmware version 2.1.
I have created a few projects with the MasterDetailFlow using API 11 earlier.
I needed to add LoginActivity so I downloaded the needed SDKs and updated the SDK tools to rev 22.2
http://prntscr.com/1rzb9j
Now that it is updated, when I use the wizard to create a new MasterDetailFlow project, or when adding an Activity template such as LoginActivity (to my previously created project having MasterDetailFlow layout) it says that the Android Support Library is not available or is outdated.
http://prntscr.com/1rzbc5
This template depends on the Android Support library, which is either not installed, or the template depends on a more recent version than the one you have installed.
Required version: 8
Installed version: 18
I have tried Uninstalling and reinstalling via the Wizard, to no avail
(as advised here Not able to create new Project with ADT version 20)
After I uninstall and run the wizard- the Installed version shows "not available" and thus I click on "Install/Upgrade"; where it installs and shows that the Installed version is 18 but the next and finish buttons are disabled, and "Check Again" does nothing.
I have also tried manually installing also, going back to version 8, even then it says:
Required version: 8
Installed version: 8
Here too, the next button is disabled, and check again does nothing.
I repeated the above said solutions many times, and no luck. I am thinking it might be something else that is wrong. Any ideas?
Try google app inventor for creating android applications. Its easier and lot more simple.
Solved.
https://code.google.com/p/android/issues/detail?id=60149#c55
Hi everyone,
This one is my bad. I was in the middle of changing the dependency
system used by the templates and a transient state got picked up into
this tools build. The templates have settled in the AOSP master
branch.
I've attached a snapshot of the current Activities templates.
Replacing your sdk/tools/templates/activities folder with the contents
of this zip should resolve this issue.
I apologize for the inconvenience.
Download the given file and replace it with the templates, and it works fine.
install the platforms and extras in the sdk better install all there is to install in the sdk
I have an android project in Eclipse I started developing in android version 2.2.? (i think). I want to update the project to run on my 2.3.3 device. Is there a way to upgrade the project or do I need to create a new one?
So based on your question... I just want to say that an Android 2.2 application will run on your 2.3.3 device without changes. (i.e., applications are forward compatible)
If you still want to change your platform version, read on.
Right click your project in the Project Explorer pane and select "Properties." The window that comes up will look like the following and you can select a different platform target.
If your project then reports some property related errors in the Problems pane, you can fix those by right-clicking your project again and selecting the Android Tools --> Fix Project Properties menu item:
There's a uses-sdk element in your AndroidManifest.xml file, the minSdkVersion attribute should always be set to something, especially if you're going to put your application in the Android Market. The corresponding API levels for Android are well documented.
I did this myself recently in the Eclipse IDE.
If you right click the project and view properties. There is a tag where you can select the target framework (2.2.?, 2.3.3, etc.) Unselect 2.2 and select 2.3.3.
At this point, if you were to save and reopen the project, it would tell you that some properties are messed up. If you right click the project again, and one of the last few menu buttons will have text along the lines of "Fix Project Properties". Click that option and afterwards everything should work correctly.
I can't add comments yet (apparently), but wanted to add to the above answer.
Yes, as noted above, you can edit project properties to bind to a new target android framework version. Under Properties, the heading on the left you want to pick is "Android". And you don't "unselect and select", you simply check the target framework you want (you can only have one active, they are really radio buttons, not checkboxes!).