Android Studio doesn't see all API platforms - android

Today I decided to move from the manual Android SDK Tools and IntelliJ IDEA to AndroidStudio. So I uninstalled everything (on a Mac OS X Yosemite) and install AndroidStudio.
By default, AndroidStudio installs API platform 21. I want my project to work with API platform 19, so I opened the SDK Manager from the Tools menu and installed the API 19 SDK and images.
However, when I open the Project Structure window to select an android SDK, the Module SDK combo box only shows API platform 21. I've closed and reopened Android Studio, and still - just one API platform is listed.
What can be the problem?
UPDATE:
Manually selecting the API 19 folder and adding it as a new SDK did not work. However, deleting the API 21 SDK did work - after that the API 19 SDK appeared. I reinstalled API 21, but sure enough - only API 19 appears.

Related

My API level in Unity is 0

I have installed android-sdk on my computer. My API level is 27 but when I want to build an android app in Unity I have an error that says The minimum API level you need is 23 but the android API level on my computer is 0.
I have uninstalled and reinstalled the android SDK. I changed the name of my android folder in the tools folder from android 8.0.1 to android_23 and android_27.
I changed the folder of android SDK.
I don't have android studio on my PC.
I don't know what to do. Help Please.
Remove SDK platform above then 23. Minimum(Maximum) install API should be 23. don't install SDK Platform greater then 23, You have APi 27, so uninstall it and install 23.

Visual Studio not showing installed Android api levels

I am developing an Android app in Visual Studio. In the Android SDK manager, all API's from API level 23 (Android 6.0) to API level 25 (Android 7.1) are installed.
But when I open the project properties in Visual Studio, the "Compile using Android version" option is showing apis only till 23(Android 6.0). I want to target 7.1 as most of the smartphones will now have it.
There are another problem if I go with Android 6.0. Some packages like Xamarin.Firebase.Messaging fails to install with the following error.
Install-Package: Could not install package 'Xamarin.Firebase.Messaging 42.1001.0'.
You are trying to install this package into a
project that targets 'MonoAndroid,Version=v6.0', but the package does not contain
any assembly references or content files that are
compatible with that framework. For more information, contact the package author.
I can see that all options available under API level 25 are installed in SDK manager. Kindly help me so that i can target Android 7.1 from the Visual Studio Android app. Thanks
Is your Xamarin installation up to date? I suspect that your version of Xamarin.Android is 6.x which means that you won't be able to target Android 7.0 or 7.1 even if they are installed through the SDK manager. You can check the version from Help > About Microsoft Visual Studio.
For example, my version is 7.1.0.19 and I'm able to target Androd 7.1 just fine.
To check for updates, you should open Tools > Options > Xamarin > Other and click Check now.
Update for Visual Studio 2017:
If you're using Visual Studio 2017 or newer, Xamarin updates are delivered as part of Visual Studio updates. To manually check for updates, go to Tools > Extensions and Updates... In the left hand menu, open Updates and select Product Updates. If there are updates available, they will be shown on this list.
In Visual Studio 2017 preview there is an improved Google Android emulation support with a new Android emulator that's built into Visual Studio (this supercedes the Visual Studio Emulator for Android):
I checked it this morning and it had Android emulators up to API 27 including Oreo.
However, I did try to trigger API 28 P-Type even switching the SDK Manager from the Microsoft repository to the Google repository but it still didn't show up, but, at least you got everything you need up to API 27.
References:
https://www.visualstudio.com/vs/preview/
https://blog.xamarin.com/3-reasons-to-try-visual-studio-2017-version-15-4-previews/

Android version nativescript

I have got android sdk installed and set android_home. In fact I'm developing with ionic and everything is ok.
Now I want to test nativescript but I'm not able to configure it. I installed everything and I get the error:
You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system.
I have android 23 version installed and also 19. I installed also 22 as I read in other pages that nativescript have a problem even if you have an upper version, but even with andorid 22 it doesn't work. Any ideas?
Which OS are you using? Have you installed also Android support repositories from SDK manager?
I have installed Android SDK tools from version 19 to 23, SDK platform-tools and SDK build-tools.

Android plugin for Eclipse gets stuck at application name

When using the Eclipse plugin, I get stuck at this step...
What's going on..? I did enter a name.
Since the Build SDK field is blank, this indicates you have installed part of the SDK, but none of the SDK Platforms. You need to have one or more SDK Platforms installed as well. Each of these has an API Level and Android version (e.g., Android 4.1 (API 16).
In Eclipse, go to Window -> Android SDK Manager. Select one or more SDK Platforms to install. As an example, the SDK Manager on my system shows shows several SDK Platforms are installed. Here's a partial view:
Note the various versions of the SDK Platform have a status of "Installed"

Eclipse Can't find & install SDK platform Android 1.6 API 4

I would like to install Android SDK platform 1.6 (API 4).
So, on Eclipse, I went to Android SDK and AVD Manager tool, I click on "Available packages" and expand "Android Repository".
But I can not find Android 1.6 API 4, the minimum version it shows is v2.1 API 7.
why? How can I install android 1.6 API 4?
In the repository view, it appears for me as 'SDK Platform Android 1.6' and 'Google APIs by Google Inc.', both version 4 (note: these are two different things that I won't explain here).
Things are clearer if you pick the 'API Level' radio button at the bottom of the SDK Manager. If this doesn't appear then your SDK tools are probably out of date and I suggest you upgrade.
Run as administrator
Uninstall any API greater than 1.X
Close SDK Manager
Reopen in administrator mode
Now u have all APIs in the list

Categories

Resources