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
Related
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.
guys when am trying to run the android application via the desktop application this runtime error is popping up again and again. The desktop app works absolutely fine but when i try to run via the android app, it gives the noclassdeffounderror for the classes which are there in the desktop application !
its been four five hours ! what the hell is wrong with it ? what can be the possible issues with it ?
please suggestions! PS am not using ADT 17 ver. Help guys! thanks!
Right Click your Android project->Properties->Java Build Path->Order and Export Check the libraries you are using (Gdx.jar for example).
Right Click your Android project->Properties->Java Build Path->Order and Exports
Export all your jars that you are using and your desktop project with android project as shown in image and this would let your applicaion run on android.
if every thing is linked well... (using Java Build Path and Order and Export...) and still having problem running project on android check if JRE is set to 1.6.
Change the JRE from the main Java Project from 1.7 to 1.6 and try to run it on android.
Eclipse-> main-java-project--> Expand the directory--> Right click on JRE System library--> Check "Execution environment" --> select JavaES 1.6 jre6-> Click Ok
I need to change my projects's build target from 2.2 to 2.3.3 in order to use Google API with map support. I changed the manifest's min- and target SdkVersion to 10. And the project's properties|android to 2.3.3. And under my project folder in Eclipse there is then the Android 2.3.3 directory to indicate that the stuff worked out that far.
But when I try to run my application I get the non-informative Eclipse "Problem Occurred" dialog: An internal error occurred during: "Launching MyProjectName". java.lang.NullPointerException
Now even if I change back to 2.2, I cannot make my old classes run. Again, Eclipse-hell has broken out. Its huge mess fails to find its own files. What can be done to help this? Other that starting all over again.
If you want to change your build target for an application, you need to follow these steps
Project -> Right Click and Select properties
Select Android option on left side pane
In the Project Build Target on right side pane, select the target you wish
That is it. Thanks
If I were you, I'd do Project > Clean in Eclipse to see if it helps.
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
I started writing my first Android app, and chose SDK 2.0.1, before I had an android phone.
I wantto test the app on a phone that is Android 1.6. The app itself uses pretty simple stuff, so I'm sure its 1.6 compatible, but I want to change the SDK level from Eclipse.
The "default.properties" file in my project tree and naively tried to change from Android 6, but it isn't changeable, but if I try to change it it tells me to change the build.properties of the project. I don't know what that means. I'm not used to eclipse and am still fumbling around it.
I went to the project properties and clicked on "Java Build Path", but from there I don't know how to add,remove or edit the libraries.
Basically, I'm asking how to downgrade my project from inside eclipse, so I can export it to a compatible phone.
You can actually keep the project's targetSDK at the same level, and just use a minSDK value.
What this means is that your application will target to build against a certain API, but it will let phones with lesser versions of Android than that API to also run the app. The catch is that you have to make sure you don't make any API calls that don't exist in the older versions of Android.
To change this, go to your AndroidManifest.xml and add the following inside of the xml node:
<uses-sdk android:minSdkVersion="3" />
This would set your minsdk to Android 1.5. Change it 4 for Android 1.6 and so on.
But if you really want to change the TargetSDK, right click on your project --> properties. Then click the Android tab on the left. Then check the box of the target API you want to build against.
Some more versioning info can be found here.
You can change your the Build Target for your project at any time: Right-click the project in the Package Explorer, select Properties, select Android and then check the desired Project Target.
PS : I'm on Eclipse Helios
http://developer.android.com/guide/developing/eclipse-adt.html