Running android project - android

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.

Related

Eclipse: Cant create new Android Application Project?

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.

Android project in Eclipse is missing the Android 4.2.2 library folder

SOLVED - After doing what you all helped me with, a restart of Eclipse fixed it. Thanks
One of my Android apps in Eclipse is showing red errors for all my lines of code, and when I looked to find the problem, there was no Android 4.2.2 library in the project. I don't know where it went, but I'd like to know how I get it back.
It also says "Unable to get system library for project" in the library tab of Build Path.
If these responses don't work, I might just create a new project and put back in the required files.
If the other answers don't help, try right clicking the folder of your project and then going to "Android Tools", then "Fix Project Properties". If you happen to delete your dependencies in the Package Explorer in Eclipse, this will bring them right back!
Try these steps:
Right Click on Project->Properties->Android->Select 4.2.2 in your target name
If there is no 4.2.2 in your target then you probably need to download 4.2.2 api from sdk manager.
Right click on the project ==> Select Android ==> Select Android 4.2.2.
Try downloading other built target, e.g. Android 4.3, so you can do this:
Select other project built target (e.g. Google APIs 4.3), click OK.
Repeat the same steps to select Android 4.2.2.

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.

Changing the min. SDK version of an Android app

How to change the version of android application. i did entire code in Android 2.2 version, if i want to install the apk in 2.1 version, it getting parse error. How to change the versions of application. I dont know how to solve this issue. pls guide me to solve this problem.
if you are using eclipse it's very easy
go in eclipse project explorer
then right click on properties
select android from tree view
select your appropriate version.
and then in
in menifest file change
minsdk to 2.1
If you are using eclipse change value in manifest and build target in project configuration (Right click on project->Properties->Android-> Select that one which you need.
You have to also know that there can be some problems because of different version.
Check also this one Android Developer

How to Downgrade my android application?

In my application i need to run my application of both versions android 2.1 and android 2.2. my application run sucessfully in android 2.2 but it shows error "DTD handler not supported" when i run on 2.1. My build is made in 2.1,but this application only run in
its a web application and i am using sax parser.
please suggest what should to do. its urgent
Thanks in advance.
Right click on your project, choose Properties, then click Android and check which version you are using.
Also check your Manifest.xml to see if the following line is present
<uses-sdk android:minSdkVersion="5" />
This should map to the correct version you want. For 2.0 its 5, 7 fro 2.1 and for 2.2 its 8
IN ECLIPSE:
Right Click your project folder.
Select Properties
Select Android in the left Pane
Select your build target
Select Project from the top menu
Select Clean, clean your project
BULID and RUN

Categories

Resources