I have an issue when run Dependency Checker (Tools-Options-Tools for Apache Cordova) in VS, which is One or more required packages are missing regarding "Android Package: extra-android-support"... But I can't find the required file in Android SDK Manager as shown in this image from Android SDK Manager.
I have read almost all questions related to the same issue but without any luck.
One or more required packages are missing regarding "Android Package: extra-android-support"... But I can't find the required file in Android SDK Manager
Open the Android SDK Manager of your Tools for Apache Cordova, You can check/override the path of it under Tools->Options->Tools For Apache Cordova->Environment Variable Overrides->ADT_HOME.
Then select Android Support Repository under Extra folder and install it:
Related
I downloaded the latest version (3.2.1) of Android Studio from the Android Developers site.
After installing the application, it won't start. I get an error message when clicking on "Start a new Android Studio project":
Your Android SDK is missing, out of date or corrupted.
I read an outdated post dealing with the same issue but an older version of the application. I followed the solution described there and got stuck after navigating to Configure > Project Defaults > Project Structure. This is the window I see right now:
I can't find the SDK. Where is it located? Does it not get installed together with the app? If so, where can I download it from?
I can't find the SDK. Where is it located? Does it not get installed
together with the app? If so, where can I download it from?
That depends on how you installed the Android Studio. With the SDK packages (called bundle) or you have installed it separately which doesn't have SDK packages.
Where is it located
It's mostly uses:
C:\Users\<username>\AppData\Local\Android\Sdk
Directory on windows if you install SDK Manager, it will be easy to figured out.
where can I download it from
After installing Android SDK Manager, you'll need to download some packages like;
Platform-tools
Build-tools
Support library
And etc
To be able to compile-use Android Studio which is a general question and use Google for that.
Could not find android.jar for API Level 26. This means the Android
SDK platform for API Level 26 is not installed. Either install it in
the Android SDK Manager (Tools > Open Android SDK Manager...), or
change your Xamarin.Android project to target an API version that is
installed. (C:\Program Files
(x86)\Android\android-sdk\platforms\android-O\android.jar missing.)
As you can see from below that I have the correct api sdk platforms installed but as you will notice on the error message, it is searching for an android-O directory.
Here is my directory which you will notice has everything in it but doesn't contain android-O
I looked in my visual studio project settings and here is what it shows for target framework
Does this mean that Visual Studio 2017 doesn't support Android SDK 26+?
I discovered that you can fix this issue with 2 steps:
Download and install Visual Studio 2017 Preview by going to https://www.visualstudio.com/vs/preview/
Download and install the Xamarin update extension on both versions of Visual Studio 2017 installed by going to https://developer.xamarin.com/recipes/cross-platform/ide/change_updates_channel/extension-gallery/ and follow the steps
If you're building for a Xamarin project, you may need to rename the folder in the SDK folder from "android-{alphabetOSVersion}" to "android-{numericOSVersion}" (IE change the folder "android-o" to "android-27").
This should be done in the C:\Program Files (x86)\Android\android-sdk\platforms folder.
I was getting a similar issue.
Severity Code Description Project File Line Suppression State
Error Could not find android.jar for API level 29. This means the
Android SDK platform for API level 29 is not installed. Either install
it in the Android SDK Manager (Tools > Android > Android SDK
Manager...), or change the Xamarin.Android project to target an API
version that is installed. (C:\Program Files
(x86)\Android\android-sdk\platforms\android-29\android.jar missing.)
The easy fix was to follow the steps mentioned in the error itself from your Visual Studio (I was using Visual Studio 2019).
Click on the Apply Changes button and then reload the project.
MVS 2017 does support Android SDK 26+,
Im using it with v15.3.3.
If you have MVS 2017 installed on your machine,make sure it's up to date
then download and install the Xamarin update extension.
Check out this guide
https://developer.xamarin.com/recipes/cross-platform/ide/change_updates_channel/extension-gallery/
And as a rule of thumb,whenever you get the error "Resolve the “Could not find android.jar for API Level XX” in Xamarin Studio" this are steps to follow to solve such an error
This happens when you target your project to a non-installed Android SDK platform, to fix this you have to install the right components.
Step 1:Target another Android Framework
On the project you have created right-click the project > Options
Go to the Xamarin project configurations
Then go to Build > General > Target framework, and select other Android target framework.
Xamarin project Android target framework
Step 2:Install the Android SDK you need
As the second option you can install the missing components needed to debug on the SDK Android platform; for this you have to go to:
Tools > Open Android SDK Manager
Android SDK Manager Option
Then look at the API Level number on the error or look at the version of the target framework as stated at the previous steps; then select to install the “SDK Platform” and press the “Install 1 package” button.
Choose the right Android SDK Platform
Accept license agreements
license agreements
With this you are ready, press F5 and you can debug now.
I already have Android SDK latest edition and Eclipse installed. But I want to try Android Studio as well.
I have seen this and this post, but those solutions change the instance of SDK Android Studio (once downloaded and installed) uses. What I want is not to download another SDK when I already have it installed on my machine.
The problem is that the download package given here includes SDK as well.
So can I download Android Studio IDE without the SDK, and then give the path to the SDK I already have during installation?
All the answers suggest to download it with an SDK and then delete it.
You can however download the AStudio w/o the SDK from Android Tools Project Site.
The latest build (2.0 Preview 4) can be downloaded here.
Note: The newest version also requires the SDK to be outside the application folder!
Well now Google offers a "No Android SDK" version of Android Studio in its official Download portal:
It is an old question but it might help someone like me who is looking for an answer. This instructions are for windows 64 bit systems.
Download zip of Android studio without SDK using links given in other answers (e.g. I downloaded android-studio-ide-141.2112779-windows.zip - version 1.3.0.9)
Unzip the archive and run bin/studio64.exe
When it asks for the path to install the SDK, browse your existing SDK location instead of the default path given.
If it detects valid installation of SDK, it will display a message that only missing or old component will be downloaded.
I hope it helps.
You can find it here (http://developer.android.com/sdk/index.html#Other) in the "Other Download Options" section. There is many different version of Android SDK and Android Studio, including Android Studio without bundled SDK tools.
You can download it with SDK, then change it to yours ( here is explained ) and then delete it
Download Android Studio as is.
Go to it's location and delete the SDK (optional).
At your project open "project structure" and set SDK locations to your Eclipse's SDK.
or just copy your Eclispse sdk to android studio SDK.
I need the Support Package jar file.
I opened the page http://developer.android.com/sdk/compatibility-library.html#Downloading and do as they said:
Launch the SDK and AVD Manager.
From Eclipse, you can select Window > Android SDK and AVD Manager.
Or, launch SDK Manager.exe from the / directory (on Windows
only) or android from the /tools/ directory.
Expand the Android Repository, check Android Support package and
click Install selected.
But my SDK manager is updated and there is no 'Android Repository' anymore and i cannot find Android Support Package.
Please give me any advice.
It's actually the Android Compatibility package. It's just a label error.
After installing API 16, I guess it's called as Android Support Library, and below is the path where the required library files are present:
C:\Program Files (x86)\Android\android-sdk-windows\android-compatibility\v*
I'm installing and configuring Eclipse Galileo 3.52 on a PC following the instructions on Eclipse ADT
All the steps in "Downloading the ADT Plugin" go fine with no errors. But when I get to the next step "Configuring the ADT Plugin" it fails when I set my SDK location, saying that it can't find android-sdk-windows\platforms.
But no kidding - I'm using the android-sdk_r06-windows SDK and the Readme file says, "The Android SDK archive now only contains the tools. It no longer comes populated with a specific Android platform or Google add-on. Instead you
use the SDK Manager to install or update SDK components such as platforms,
tools, add-ons, and documentation." How how I do this? Do I have to use an older version of the SDK to go with this older version of Eclipse?
Thanks in advance.
To QRohlf:
I tried that. I ran it from the command line and got the same error:
[INFO] Starting Android SDK and AVD Manager
Error: Error parsing the sdk.
Error: C:\Documents and Settings\Peter\My Documents\SW\AndroidSDK\android-sdk-windows\platforms is missing.
Error: Unable to parse SDK content.
"platforms" is missing because it's not included in this version of the SDK. It says so in the Readme file. I'm trying to follow the instructions in the link in the original post which imply this can be all done from the IDE but I don't know what step is supposed to create the platforms folder.
It's tempting to manually create the folder but I want to do this 'by the book' as the Eclipse/Android team intended because I'm making a 'getting started' guide for some students.
I redid my installation from scratch but this time I put the SDK higher in the file system - C:\SDKs\AndroidSDK.... and this time it was happy.
I don't know if it was having a problem with the long pathname or the space between "My" and "Documents" or what, but the issue is now resolved.
Run the Sdk Setup.exe in android-sdk_r06-windows and install the addons. See Adding SDK Components for detailed instructions.