Android Eclipse - android

I am not able to start a new project in eclipse. Every time I go for new Android project it gives the warning "SDK target must be specified" and I don't know how to do that.

- At first you need to download Android SDK, and decompress.
- You will need to install Eclipse ADT plugin
Then (from the android website)
1. Select Window > Preferences... to open the Preferences panel (Mac OS X: Eclipse > Preferences).
2. Select Android from the left panel.
3. For the SDK Location in the main panel, click Browse... and locate your downloaded SDK directory.
4. Click Apply, then OK.
Thats all
Reference:
install: http://developer.android.com/sdk/installing.html
configure: http://developer.android.com/sdk/eclipse-adt.html#installing

"Target must be specified" means that you need to select the correct Android version from the big list in the New Project window.

Related

Android SDK is missing, out of date, or is missing templates. Please ensure you are using SDK version 22 or later

Possible duplicate, I just download a Android Studio Zip file like Eclipse, as I opened getting this error.
But problem is how to update it?
same problem happened to me, From this
I have faced the same issue, to solve it:
1- delete (or move) the projects folder (AndroidStudioProjects).
2- Run the Android-Studio (a WELCOME screen will started).
3- From Welcome Screen choose, "Configure -> Project Defaults -> Project Structure)
4- Under Platform Settings choose SDKs.
5- Select Android SDK -> right_click delete.
6- Right_click -> New Sdk -> Android SDK -> choose your SDK dir -> then OK.
7- Choose the Build target -> apply -> OK. enjoy
I had same issue in Android Studio 3. (the project was open) so I closed the current project and the IDE automatically prompted to download the latest components. once its done everything was working correctly.
Here's a better approach where you don't have to delete/move anything for Android Studio 3.+.
Open Android Studio and click cancel/ignore for error prompts on missing SDK for each project.
Close all your open projects. You can do this by File > Close Project.
After you do step 1 for all projects, the Welcome screen appears.
The welcome screen will detect you are missing the SDK and give you options to fix the problem, i.e., install the SDKs for you.
Click on Tools > SDK Manager or click SDK Manager
after If you are unable to see the location of your Android SDK Location, click on edit and create a folder where you want to keep it and then click Next and Finish
Source: https://stackoverflow.com/a/46351772/13093413
(Top right corner) File > Close Project > After you close the project you will get a screen which says that you don't have an sdk and will ask you if you want to install it.
I was able to trigger an SDK download like this:
Close Android Studio
Open android studio, but be ready
Once you see "loading project", click cancel. (this will only appear for seconds on a fast machine)
The SDK download window appeared!
If Android Studio directly opening your project instead of setup window, then just close the windows of all projects. Now you will able to see the startup window. If SDK is missing then it will provide option to download SDK and other required tools.
It works for me.
Create SDK folder at \Android\Sdk
Close any project which is already open in Android studio
Android Studio setup wizard will appear and perform the needed installation.
Press escape to close all errors.
close project
Android studio will prompt to install SDK
Install the SDK and configure project
1.Click on Configure
2.Then Choose Project Defaults
3.Click on Project Structure
4.Set android sdk path
You will find here "C:\User\YourPcname\AppData\Local\SDK"
Note: Sometime AppData may hidden if it will not show then enable show hidden content.
5.Apply Changes
6.Then Select Sdk From Configure option
7.Then Android sdk manager page is open
8.In bottom you will see Install packages option
9.Install them and enjoy.

Android Studios doesn't recognize the SDK manager or adt in setup

I'm having problems setting up AS. I've used it on my home computer that had eclipse, but now I'm trying to install it on my work computer that has never touched anything android. It downloaded properly, I went in through terminal and ran ./android to update the sdk and I created a new Android project.
The project setup doesn't have my actual project files, so I can't local my src file easily (even though it is there somewhere):
AS also isn't recognizing the android sdk and avd setup :
What did I do wrong in my installation? I'm not familiar with this gradle business..
Try this:
Close project
File->Close Project
Now select Configure->Project Defaults->Project Structure
In Project Structure windows Select "SDKs" in left column "Android API" with android icon in middle column.
Correct the Android SDK home path, Build target & Java SDK in left column.
Click Apply & reopen your project.

Unable to resolve target 'android-18' error

i am unable to download target android-18 file
In ``default.properties` file .
set target=android-18.
Check also that you installed this API level and check it in properties window, like:
In my case 17 is selected
Right click on your project select Properties(Alt+Enter),
goto Android(Project build Target)-> Check Android 4.2.2 or earlier version which you have, click on Apply-> OK, that's it.
finally clean your project, Done!!
First open Android SDK Manager and check whehther API18 (Android 4.3) SDK platform is downloaded or not. If not download it by selecting check box then accept license and press install package.
Next close and open eclipse again.
now it will show API18 (Android 4.3) SDK platform in Android SDK Manager as installed.
after that select project -> Properties -> Android -> mark checkbox Android 4.3 in project build target ->apply ->ok.
select project -> project-> clean.
I thing u r importing Project in eclipse some Android Project Not Find Target sdk So we Add target sdk like Right Click on ProJect GO To Properties GO to Android and Select Taget if Not Install than Download Adt plugin For Eclipse
The error is well justified, either you dont have correct properties added or you are missing the SDK.
Please check this link,
Unable to resolve target 'android-XX'
Hope it helps

Unable to resolve target 'android-8'

Long story short, eclipse updated ADT & SDK to v20 , which I didn't like and wanted to get back to 18.
So I uninstalled ADT and SKD and donwloaded v18 from
http://dl.google.com/android/installer_r18-windows.exe
and http://dl.google.com/android/ADT-18.0.0.zip
Installed both of them, yet now Eclipse can't seem to find some sdk platform and throws the "Unable to resolve target 'android-8'" error... any ideas what might be wrong?
in android sdk window go to:
tools >> options
will be open a new window and check the option force https:// ....
disable this checkbox
if your network is using proxy conigure it in this window too.
reload or restart the android sdk window and try download again. :)
Right click on project->properties.
Select Android on left panel.
If you see Android 4.0.3 in (Project Build Target), then tick it and click Apply button.
If you don't have 4.0.3 version in Build Targets, then you should install it. to install simply go to sdk manager and click on Android 4.0.3(API 15)-SDK Platform.
Open "Android SDK Manager"
Go to Menu: "Tools -> Options..."
Press the button "Clear Cache"
Press the button "Close"
Close "Android SDK Manager" (not necessary!)
In Eclipse, go to Menu: "Project -> Clean..." to refresh current project
simple set your project's target sdk as shown in below screen shot

Eclipse Android Project no Target available

I just installed the latest version of Eclipse and the Android SDK. In the Android SDK Manager I installed everything, and in Eclipse I installed the ADT Plugin.
If I choose new Android project, I can't choose any Build Target. How can i select different build targets?
Thanks for your help!
I had the same issue and had to go to Eclipse > Window > Preferences > Android to set the Android SDK location (C:\Program Files\Android\android-sdk in my case).
You can see this post: android can not find a target
and
http://www.mail-archive.com/android-beginners#googlegroups.com/msg17763.html
first of all select SDK manager in the android folder, then a windows pops up automatically in which certain packages are selected, from which you can select the platform on which you want to develop you application..... it will take some time to download those packages
Then go to preference(Eclipse) -> select android from the leftbar -> select target in the right bar -> got to the program Files - > select android -> select sdk -> Finish
Before running you application perform the following steps ->
-> select project name from the project explorer
-> select run as -> run configuration -> select android configuration -> select project name and activity name to start with -> Select target tab from the above -> it shows the platform which you have installed -> select that platform -> select run
don't forget i struggled with it, always mention the activity name in the manifest file otherwise what ever you program, it will never comes on emulator, but shows error....
You have to open the SDK Manager in the location in which you installed the Android SDK and download individual build targets depending on the Android version you want to develop for.
See Step 4 Here: http://developer.android.com/sdk/installing.html
Perhaps you've missed Step 4. Adding Platforms and Other Components at http://developer.android.com/sdk/installing.html . Pay attention on it.
To fix this problem, open SDK manager thru programs or eclipse. It will show available packages to download. In that list don't select the latest one. Select Versioin 2.2(API 8). Then install all sub packages (there are six) inside that.
the same error for me, Just activate "Automatic Updates" in eclipse, restart, install the new update of eclipse, you will be notified> now you can select in the preference android: your folder and all target will be there

Categories

Resources