React Native Documentation Recommends SDK Platform Android 6.0 (Marshmallow), When I try to install, it is dim, and I am not able to download and install. See image here:
the sdk path can not include space!!!!
so you can download the sdk in D:\sdk
change directory to android sdk directory, then go deeper into tools/bin:
run following command, any meaningful error must get visible in terminal, so you can detect the impediments against downloading platform:
sdkmanager "platform-tools" "platforms;android-23"
Create a non-spaced directory for example C:\AndroidSdk and move the content of C:\Users\Kashif Nazir\AppData\Local\Android\Sdk to the new folder. Then, in Android Studio SDK Manager, change the SDK location to C:\AndroidSdk. Now, you'll be able to download and save different SDKs.
Related
This is the webpage showing from where I downloaded the SDK:
On extracting the .zip folder, and opening the 'tools' folder, all I can see in an emulator.exe, mksdcard.exe and a host of .bat files (as shown below).
How do I proceed?
In IntelliJ IDEA 2017.1 and 2017.2 setting up Android SDK from scratch is complicated. I would recommended to install Android Studio and manage SDK platform there. This problem will be addressed in one of the nearest updates.
If you are brave enough, it's still possible to set it up without Android Studio using the tools\bin\sdkmanager.bat command line tool. GUI version of the SDK Manager is deprecated (no longer available in the SDK download). Standalone SDK can be downloaded here. Look below the Get just the command line tools section.
So, you will need to install at least one platform version.
First run the update to ensure you have the latest tools:
sdkmanager --update
Now you can list the packages available for installation:
sdkmanager --list
To install Android Platform: (Edit April 2022: need quotes now)
sdkmanager "platforms;android-26"
To install the current build tools version (optional):
sdkmanager "build-tools;26.0.0"
At this point you should be able to add Android SDK configuration for the installed platform version in IntelliJ IDEA like this:
You will also have access to Android SDK configuration UI where you download additional components and perform updates (just like in Android Studio):
As Karan Sharma mentioned in this post.
To add an existing SDK, you should close your project if you have any open one.
Then from the Welcome page select Configure -> Project Defaults -> Project Structure
And then from the Default Project Structure window and from the left side, select SDKs and then the plus button from the toolbar, and from the menu select Android SDK
And then give the address to the location where your Android SDK files are in, and hit OK.
Thats it!
Now it should be working for you!
You can also install the SDK in the IDEA GUI. It says in the tutorial,
If you don't have the Android SDK configured, IntelliJ IDEA will
detect this and prompt you to download it:
launch android executable and install the platforms and build-tools.
I tried to reinstall Android Studio on Ubuntu and seems not to get to download the Sdk this time.
Go to Android Studio download page and go to Get just the command line tools section and download the SDK tools for Linux
Then after download is done, launch the SDK manger and install the needed packages.
Then finally, Open Android studio and change the SDK path to your new path, see attached screenshot for this step
It is said, that it is possible to install NDK with Android SDK manager with the following picture:
Unfortunately, I don't have SDK Plantforms, SDK Tools and SDK Update Sites tabs in my SDK Manager. My picture is following:
So how to install NDK in my situation?
Since you are using the standalone Android SDK Manager, you'll need to use the sdkmanager command line tool.
Close Android SDK Manager
Start a Command Prompt as Administrator
cd"path to your installation of Android SDK Manager"\tools\bin
sdkmanager ndk-bundle
Accept the License Agreement
Wait a long time. The installation is done without any progress indicator.
When it finally reports done, start Android SDK Manager
Look under Extras and there you'll find Ndk Bundle
The android's standalone sdk manager [second picture] differs from the one integrated in Android Studio[first picture]. The standalone has the basics for android developing whereas the Android Studio's integrated sdk manager, located in Tools > Android > SDK Manager, adds more useful tools, such as the ndk, Cmake* and LLDB* [* in android studio 222 version] (the ones highlighted).
So you have two options, if you are using Android Studio, using the integrated sdk manager to directly install the ndk or you could manually download the ndk and add the path to your system variables so your build environment is aware of it.
If your internet connection is using a proxy, which is most often the case for office networks, the https connection to the Android repo does not work sometimes. As a result you will not see the NDK in the list. If that is the case, copy the https repo link and add the same repo with http, as shown on the picture.
The "Custom Update Site" is the link that manually added repo link. Notice the change from https to http.
#ortisenderos has the right options available to you.
If you're not going to utilize the common setups in android studio and/or eclipse you can expect to place the paths to all your tools into your PATH environment variable, (be it Linux, macOS or Windows).
[Path to CMake]/bin
[Path to Git]/bin
[Path to SDK]/tools
[Path to SDK]/platform-tools
[Path to NDK]
[Path to ANT]/bin
etc...
I have downloaded android APIs and I've copied one of them to this path
H:\Android\android-sdk\platforms\api
But again in SDK none of APIs wasn't installed.
THe sdk is what is suppose to be used to install the API you should not be copying it.
follow:
You can launch the SDK Manager in one of the following ways:
From Eclipse (with ADT), select Window > Android SDK Manager.
On Windows, double-click the SDK Manager.exe file at the root of the Android SDK directory.
On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk.
You can select which packages you want to download by toggling the checkboxes on the left, then click Install to install the selected packages.
The link below will give you more pointers.
http://developer.android.com/tools/help/sdk-manager.html
You need to use Android SDK Manager to download the APIs for Android. Check this:
http://developer.android.com/tools/help/sdk-manager.html
How to determine the version of Android SDK installed in my computer?
<Program files>\Android\Android-sdk\platforms\<platform SDK's>
On a 32bit machine:
"<Program files>" will be \Program Files\
On a 64bit machine:
If you installed the 32bit ADT, "<Program files>" will be \Program Files (x86)\
If you installed the 64bit ADT, "<Program files>" will be \Program Files\
Type in android list target into your command line to see what android API you are using.
C:\ <path to android sdk> \tools\source.properties (open with notepad)
There you will find it.
Android Studio is now (early 2015) out of beta. If you're using it as your development platform, the SDK Manager is probably the easiest way to see what's available. To start the SDK Manager from within Android Studio, use the menu bar: Tools > Android > SDK Manager.
This will provide not only the SDK version, but the versions of SDK Build Tools and SDK Platform Tools. It also works if you've installed them somewhere other than in Program Files.
You can check following path for Windows 10
C:\Users{user-name}\AppData\Local\Android\sdk\platforms
Also, you can check from android studio
File > Project Structure > SDK Location > Android SDK Location
open android sdk->click on tools tab->about and u get the entire details!
In the case of Linux, You get the version of Android SDK using sdkmanager.
your_path/android-sdk/tools/bin/sdkmanager --version
in my case
/var/lib/jenkins/android-sdk/tools/bin/sdkmanager --version
While some responses have shown how to get the versions of the installed Android SDKs and various Android SDK related tools using the Android SDK Manager GUI, here's a way to get the same information from the command line:
%ANDROID_HOME%\tools\bin\sdkmanager.bat --list
You can redirect the output to a file to ease review and sharing.
Note: In my corporate environment, I also had to use the --proxy, --proxy_host, and --proxy_port command line options. You may need to use them as well.
I develope cross-plateform mobile applications Using Xamarin integrated in Visual Studio 2017.
I prefer to install and check all details of Android SDK from within the Visual Studio 2017. This can be found under the menu TOOLS -> Android -> Android SDK Manager.
Bellow is the Visual representation of the Adroid SDK Manager.
If you prefer to manage from UI, type android in command windows which will open the Android SDK Manager. Or you can directly open from C:\Program Files (x86)\Android\android-sdk\SDK Manager.exe
Create a Batch file (.bat) in Windows with the following command in it:
%ANDROID_HOME%\tools\bin\sdkmanager.bat --list && pause
NOTE: Using && pause is necessary to be able to review the information, once it is listed. If not used, the batch file will simply run, show the information in just mere few seconds and exit right away.