I saw that I need to direct Unity to the SDK file which I want to use in the application(the supported versions of android).
So I got into Edit--> Preferences --> External Tools ---> SDK file location
When I browse, I have a folder called SDK, which contains many folders in it, including one named "Platforms". There I saw the API version I downloaded from the SDK manager. I got into that folder, I went in the API folder(which is called android- 15), and then I pressed SELECT FOLDER. How ever, it didn't work.
I tried several different folders and files, but it didn't work as well.
Which file exactly should I direct to, and in which folder will it be?
https://developer.android.com/sdk/index.html
scroll to the bottom to download an android SDK standalone and just select this folder?
You should select sdk folder, (the folder whith contains "Platforms" folder )
Related
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\
My windows is on a 128GB ssd hard drive and it's running out of space. the folder
C:\Users\User\AppData\Local\Android has 2 folders android-sdk and sdk folders that use about 30GB of space.
Is it possible to move these folders to an external hard drive?
If it is possible, what changes should I make in the android studio?
I do the same thing. In Android Studio go to Settings, select Appearance and Behaviour then System Settings then Android SDK
You can choose the SDK location at the top.
You'll need to copy/paste the files to that location to save yourself the downloading time.
Its very simple just copy the sdk to wherever you want and then change the sdk path in android studio. For that just open the local.properties file and set the path like this:
sdk.dir=your path here
To keep the most used simulator in SSD drive and the others used for testing in the slow drive i created Symbolic. They are NTFS objects that appear in a folder as a sub folder but can that point to another folder on another drive.
To create then, move to C:\Users\<user>\.android\avd and do this:
mklink /d W10.1_WXGA_Tablet_API_28.avd d:\androidSimulators\W10.1_WXGA_Tablet_API_28.avd
MDLink info here.
If using Linux based systems you can also do this with linked directories.
For windows 10 users, emulators are stored by default at here:
C:\Users\<user>\.android\avd
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.
I had an Android project in eclipse, I then duplicated the project changed some of the code and updated the images, in windows explorer and eclipse the images are updated but when I run the app it uses the images from the original project, not the copy but I want the two projects to use their own images.
Any Ideas? have I missed something I needed to update in the new project?
In the "Build" folder you may see temporary files to build the application. Eclipse does not always correctly updates them because attributes of files may be violated.
If "project cleaning" has not helped you may delete the "Build" folder from the project folder.
I am trying to start developing with Titanium sdk.
I download the IDE and when I give the path of my android sdk (which is running fine in default Eclipse Android Developer suite), it doesn't recognize it.
Please check the video below:
http://screencast.com/t/AQeBORaf
It's weird...
create an empty folder android-7 in $android/platforms...it works after this
EDIT:The above solution doesn't work properly in all cases . He is another alternative which
surely works : if you are using android 2.2 an above( API 8 and above) ,you need to create a symbolic link between adb file which is in platform-tools(from 2.2 and above) and tools folder. This is because the structure of android SDKs have changed from 2.2 on wards and titanium follows the old structure . So you create a symbolic link of that adb file which was previously in tools folder and has now been transferred to platform-tools folder. This solution is for linux.
$ copy $ANDROID_SDK/platform-tools/adb.exe $ANDROID_SDK/tools
I think the path you're specifying might be incomplete. Dont click on the 'android-sdk-windows' folder. Instead try this...right click on the 'add-ons' INSIDE that folder.Go to properties and under the 'General' tab there is a 'Location' specified. Copy and paste this location into where your SDK path is needed. Hope that helps! :)