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
Related
I'm looking for installing custom plugin on Android Studio, how can I go about it?
1) Launch Android Studio application
2) Choose File -> Settings (For Mac Preference )
3) Search for Plugins
In Android Studio 3.4.2
Launch Android Studio application
Choose Project Settings
Choose Plugin from disk, if on disk then choose that location of *.jar, in my case is GenyMotion jar
Click on Apply and OK.
Then Android studio will ask for Restart.
That's all Folks!
Press Ctrl - Alt - S (Settings)
Then choose Plugins
File-> Settings->Under IDE Settings click on Plugins. Now in right side window Click on Browse repositories and there you can find the plugins. Select which one you want and click on install
As far as installing a custom plugin there is a good walkthrough on GitHub for the rest2mobile library that could be used for any plugin.
Basically the steps are as follows:
Run Android Studio.
From the menu bar, select Android Studio > Preferences.
Under IDE Settings, click Plugins and then click Install plugin from disk.
Navigate to the folder where you downloaded the plugin and double-click it.
Restart Android Studio.
Recently I started using the Mac Pc for android development. When I go to
Android Studio => File => Other setting => Preference for New Projects..
I was not able to find plugin option in the setting page.
Later while clicking option on the toolbar, I clicked on "SDK Manager" it prompted the Settings where the Plugin option was visible and I was able to add the plugins from here.
[
After this, it opens the following setting
if you are on Linux (Ubuntu)... the go to File-> Settings-> Plugin and select plugin from respective location.
If you are on Mac OS... the go to File-> Preferences-> Plugin and select plugin from respective location.
2019: With Android Studio 3.4.2 started:
Click on File -> Settings
Find "Plugins" in the left pane of the popup window and click on it
Click on the Gear in the upper right
Click on "Install Plugin from Disk"
Find your plugin from the file browser or drag and drop it from another window to go to it in the browse window, then click on it then click "OK"
The browse window will close
Click "OK" on the setting window
Click "Restart" on the popup
Updated 2021 (for Mac Users Only)
Android->Preferences
Then click on Plugins.
I want to work with Android API 19. I changed inside project.properties file target=android-19. In AndroidManifest.xml. I have this :
<uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" />
But in project properties I have this :
How can I change API level to 19 there to get rid of the error in the title.
Thanks.
Go to Windows -> Android SDK Manager
Install the Android API Level you want, in this case 19.
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.
Right click on your project
Go to properties -> Click Android (Left pane)
Select Your project target version.
Restart the Eclipse
Clean the project (click Project menu-> clean)
Now run the project.
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.
Check and add your SDK API20 to project, clean and build project.
You can ignore this warning
EDIT:
If you can work with 19 you must install API 19 through Android SDK
Window->Preferences->Android and validate your sdk location after that open your Android SDK Manager and validate if you have installed API 19
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.
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
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.