Where to place sdk.txt file for previously installed android sdk? - android

It is said in renpy documentation and i quote: If you don't want to download the SDK each time, you can create a file named sdk.txt containing a single line that is the path to the already-installed SDK.
The problem is after i create the file with the content going to the android sdk parent path... The renpy gui android still needs to download android sdk(did not see the pre installed android sdk). I cannot access the configuration button when it cannot see the android sdk installed path.
Note: I checked the android sdk path and it is correct. D:\android-sdk\

Related

Stuck on setup wizard of Android Studio

I am stuck on this screen
Can't perform any further action. Since I already downloaded an SDK, I downloaded this version
Actually android studio try to download all the components of sdk, those which you don't have.
So, it can take a lot time, instead you can disable "Downloading Components" at startup:
Go to the installation directory of Android Studio.
There you will find a folder named "bin".
Inside this folder there is a file named "idea.properties".
Open this file and add the following line to the end of the file:
disable.android.first.run=true
What this will do is disable the check that Android Studio performs on first run and decides to download all that stuff.
If it asks to save the file at some different place instead of overwriting the original one, please check the access permissions to the file.
Hope this will help you.
Remove Android Studio settings dirs for re-run Setup Wizard.
I my case I removed both
C:\Users\bieli\.AndroidStudio4.0
and
C:\Users\bieli\.android
Have you specified custom path to SDK in previous step?? if you do not download the SDK you have to go through custom settings and then specify path to SDK. you are also needed to configure the path to SDK in your environment variables, if you are using window system.
What I found reason for this problem, my SDK was corrupted or damaged. My drive were crashed and I have recovered files by recovering tool, that's why files are get damaged and SDK was not working properly.
Then I redownloaded SDK and its running fine.

Copying android studio setup from one system to another without downloading any files

Is it necessary to download android sdk for each and every system we install android studiod? Isnt there a way to copy the whole setup from one computer to another ?
Copying the whole Android Studio Folder (don't has to be installed on C) should work.
Not tested!
Android website have options to download only the sdks whichever you want.
And then when you install Android Studio afterwards, when it first opens it will ask you to point out the path for Android SDK either on the first windows that pops up or in the settings tab.
So just copy the SDKs into the system everytime you have to install Android Studio and just simply point it out from it.

How to change Android SDK Manager file path

I have serious disk size limitations (~64GB) so I need the Android SDK to be installed on another disk. I already changed the file path for the installation of Android Studio and Android SDK. But when I start the Android SDK Manager it says the SDK Path is on the small disk (default OS disk) in the AppData: "C:\Users\UserName\AppData\Local\Android\android-sdk".
How can I change this?
One answer suggests changing it from Android Studio But the file paths in there are correct.
Yeah I to got same problem but if you open sdk manager at new location of your path ,it is all set and also it is easy to use sdk manager in Android studio itself.
You can also use eclipse to launch the new sdk manager by setting the path.

Android vs android-sdk-mac_86

Why have I got two Android directories on my Mac?
Both are under ~/Library.
One is Android (which contains a 9.4GB sdk folder) and the other is android-sdk-mac_86 (which contains a 1.7GB system-images folder and a 1.7GB add-ons folder).
What's the difference and can I delete one of them?
The first question is which of the SDKs you use from your IDE (Android Studio?).
If it's not declared in your Android Studio preferences, it might be in a system variable (try echo $ANDROID_HOME from terminal)
My guess is that you're using the android-sdk-mac_x86, and you should keep that one. this looks like the latest official Stand-alone SDK, as written in the developer site:
Unpack the ZIP file you've downloaded. By default, it's unpacked into
a directory named android-sdk-mac_x86. Move it to an appropriate
location on your machine, such as a "Development" directory in your
home directory.
Make a note of the name and location of the SDK directory on your
system—you will need to refer to the SDK directory later when using
the SDK tools from the command line.
The folders you mentioned also fit what this SDK comes with.
If you are still not sure, you can rename one of them and see if everything still ticks.
I would personally delete both, and start with a fresh SDK that fits your current SDK packages, we usually carry junk from the past we don't actually need (http://developer.android.com/sdk/installing/adding-packages.html)
The Android directory contains Android studio and all the relevant files, while the other directory contains the stand alone SDK tools. You have the option to download either or both from their website.
You can delete both of them given you have the privileges.

IntelliJ and the android java docs

Has anyone had any luck getting IntelliJ to recognize and display the android java docs?
It works out of the box since Android SDK configuration in IDEA automatically adds JavaDoc directory into Documentation Paths.
Make sure you've downloaded the SDK completely including the documentation using the SDK Manager. On my system they are located under SDK_ROOT/docs/reference and this directory is automatically configured in IDEA Android SDK.
Make sure that the directory containing the documentation is in Documentation Paths. For this, do the following:
In Android Studio, open File -> Project Structure
Click on SDKs under Platform Settings
Select Android <version> in the middle panel
Add the following path under the Documentation Paths tab:
path_to_android_sdk/docs/reference
If you have not downloaded the documentation in SDK Manager, please do so before performing this procedure.

Categories

Resources