Visual Studio Tools for Cordova - FAILS - android

Everytime I build I get the below error. I'm new to cordova in Visual Studio. I actually tried installing for VS2013 first. I downloaded VS 2015 RC community and I'm trying to get the project started. However I'm getting the below message.
Attempt 1: I tried going into options>VS tools for Cordova> and clearing the cache.
Attempt 2: I've verified that have the correct path to Android SDK.
Attempt 3: I've download Android Studio thinking that it make magically load secret files for Android that I don't have.
All three failed! Help!
EDIT: I downloaded the Android Stand-alone SDK Tools and payed close attention to the path they were installing in. I notice that these were installing in the AppData folder on my machine and not the C:\Program Files x86....android sdk folder. I referenced this new folder and it seems to be working.

Note that these are warnings, not specific build errors. These messages are telling you that you have not installed some specific Android SDK components (not necessarily the Android SDK manager or tools as a whole which is what the link on the Android site gives you). In particular, you need updated build tools and the Android API level 21 SDK. If you have a more recent version of the build tools you are probably fine but missing the specific Android SDK mentioned can cause builds to fail. Each version of Cordova has different SDK version requirements. (4.3.0 uses 21 while 5.0.0 uses 22.)
To install, open the Android SDK manager (which should be in your start menu if you allowed VS to install the SDK for you or see here for its location if you did not).
Then, be sure the following are then checked and click install:
First the build tools version:
Then at least the "SDK Platform" for API level 21. You can also check the entire category if you want access to emulator images. Also note that, despite the name that appears in the SDK manager, a given SDK allows you to target a wide variety of devices. The version like "5.0.1" simply tells you that the SDK enables you to optionally use APIs available up to that version of Android in your native code.

Related

How do I configure Android SDKs for Android Studio 3.2.1?

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.

Android Studio Bug? AntergOS Android SDK can't be installed with Android Studio or AUR

OS : Antergos (Linux)
The problem here is the missing Android SDK, I can not install it from either android-studio-2.2 or AUR.
When I tried to install it from the Android SDK, it does not allow me to check the Android SDK Platform for download
Assuming that Android SDK is already installed I proceed to click next only to be met with this message which confirms that an Android SDK is installed. I then tried to start a project which the program in turn throw an error saying that the Android SDK is not installed. I then check the settings and found that the Android SDK Location is not set. I google for the location of default Android SDK location, which is $HOME/Android/sdk, which does not exist on my machine. The only conclusion I can make is that Android SDK is not installed on my machine. I tried to install it from android-studio-2.2's GUI but it does not let me tick it while saying that it is installed. I then tried to install the Android SDK from the AUR, which returns 'package filename is not valid'.
I tried installing android-studio-2.2 from both AUR and the official android site, neither let me download Android SDK.
What might be the problem? Is it Antergos? Could it be that the default install path is different than many other path on the internet?
You need to reset the older SDK and Android Studio configuration by going to the:
/home/brandon/.. directory
and deleting .AndroidStudio2.2 and Android folder. Make sure you have enabled hidden directory visibility. This will reset old Android Studio setup and start over everything from the beginning.

Installing Unity 4.6.1 error: No SDK found

Since installing Unity 4.6.1 I have been having an SDK version problem.
When I download the SDK all I get is the "tools, platforms, add-ons folders and AVD Manager.exe and SDK Manager.exe.
When I point Unity to this folder it still says no SDK found.
I tried copying these files and replacing the same ones in my SDK that did work.
How do I set the SDK file up?
Window-->Preferences-->Android-->
SDK Location: C:\CI\android-sdk-windows\tools-->then SDK Location: C:\CI\android-sdk-windows-->Apply-->
List show:
Target Name Vendor Platform API Level
Android 5.0.1 Andriod Open Source Project 5.0.1 21
Google APIs Google Inc. 5.0.1 21
-->OK
Point it to the root folder of Android SDK which you got after unzipping the bundle.
Also, see this: http://docs.unity3d.com/Manual/TroubleShootingAndroid.html
EDIT:
After seeing the edits to my post, I think it makes sense to put this info out here for better visibility.
Anyone with OP's problems, read this:
There's a zip available if you don't want the Android Studio bundle. Here: developer.android.com/sdk/index.html#Other
But you don't need to download the whole thing again and again. Just fire up the sdk manager, tick mark the packages you need to update (just select the core packages, exclude docs and samples and sources and emulator system images), accept their licenses, and just install.
Also, it is not necessary to update the Android SDK everytime Unity asks you to do so. Just hit in continue as many times as is required. Your build will continue.

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"

Installing ANDROID sdk on a MAC OS X

I've been facing issues with my installation of Android sdk on my MAC.
As instructed on the google website I've followed their instructions to install
ADT Plugin
Android SDK
Eclipse platform
The installation is not on this order but as directed by the website. After installation I followed the instructions to create a .bash_profile(it was not present on my computer) and I updated it with the directory settings. Now I've installed it and set the path folder on Eclipse using the preferences->android. When I click apply and I exit I get an error stating that Android component is missing. Also to note that the android sdk->platform is supposed to contain an adb is empty.
I used this question's solution and yet I get the same error
Thank you for your input
UPDATE: It asks me to use the SDK manager to install I am unable to locate this component
It sounds like you haven't installed any actual Android SDK platforms.
Go to the tools directory of the Android SDK and run android. The Android SDK manager GUI will appear allowing you to install an android platform. Click on available packages, expand Android repository, and install the platform versions you want.

Categories

Resources