I have been using eclips for android programming since about 6 months. Everything was working smooth till yesterday.
On restarting Eclipse it shows error on every project and all of them say:
Unable to resolve target 'android-21'.
And I can't even create any new project as it always says
Base Theme "Holo Light with Dark Action Bar" requires a build target API version of at least 14, and the current version is 8
And I cant start SDK manager from eclipse. Please help, and thank you everyone in advance. :)
Go to Windows -> Android SDK Manager Install the Android API Level you want, in this case 21.
Once you've finished installing, go to Window -> Preference -> Android. You should get a list of available targets. Click Apply then Ok.
Now right click your project, go to properties. Click Android. Choose your desired target.
Related
This is the first time I am using Android Studio to create an android application.
When I load my "activity_main.xml" file for editing purpose it shows me the following error.
Please find below screenshots.
Please Suggest fixes if any.
Try to click on Tools>Android>AVD Manager. Click New and select a device with a Target API higher than your Project API. After that restart Android Studio and load your Project. Then try again.
You need to run the AVD Manager to add a virtual device that matches the target API version your project is set to. Click Tools->Android->AVD Manager. Click on 'New', add virtual devices targeting higher API levels, e.g 18, 19, etc. Then restart Android Studio, and open your project, it should find a target device to allow you access to the Design view.
After this you sync your gradil this will solve your issue. For more Check for more information
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.
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.
And in Error console it is showing:
Failed to load properties file for project 'xxxxx'
Failed to finish PrecompilerBuilder#startupOnInitialize() android
It still has that finish button & nothing happens on clicking it again.
tried re-installation but not worked.
operating system: windows 7
what to do? any suggestion......
I have to give the answer of my own question as,
It is solved by installing API level 16 in the sdk version 21 and ADT version also 21.
Thank You.
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).
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.