Installing android SDK in eclipse offline - android

I want install android on my computer but using the sdk it fails to download the packages due to my speed i think. I have extensively googled for several days but could not find any result i found a page which showed a way using the abyss server to install but lost it due to a powercut and could not find it again.
If any one could share a link or a tutorial of installing android sdk and using it with eclipse would be great help.

I think you should try following Step in Process of making Android Development Environment .
I hope you have already Eclipse .if you don't have then get it from here and Latest Eclipse is Version 3.7.Eclipse for Java
Step 2: As you have problem of internet speed try to Download Zip File of Latest ADT tool from this. Android ADT Plugin
Use this ADT Zip describe in this SO -->SO link ADT install
after done with add zip in Eclipse you need internet connection.
STEP 3: Now for Android SDK you can download this android-sdk_r17-windows.zip which have small size from this Developer Site -->Android SDK
when you put this Zip in your computer and unzip it and Download one of Android SDK Platform from this Site -->SDK Platform Offiine.
STEp 4: Now when you get one of SDK Platform you need to put that in this for Example in my PC .I have following path .
E:\Android_development\android-sdk\platforms\put here your SDK Platform Folder.
your path of android-sdk may different .
STEP 5: don't forgot give Path of your Android-SDK to here in Eclipse.For give path go here in Eclipse
Window-->Preferences-->Android now in SDK Location Box
Provide Location of Android SDK Some thing like this
E:\Android_development\android-sdk

Go to http://dl-ssl.google.com/android/repository/repository.xml, and select the sdk platform version you want to install and then copy paste the appropriate platform android-x_rxx-windows/linux/macosx.zip you want to setup,
http://dl-ssl.google.com/android/repository/android-x_rxx.zip
After you download it, go to your
SDK-Installation-Path (C:\Program Files (x86)\Android\android-sdk\platforms in Windows). Create a Folder named android x and extract all zip contents into the android x folder.
Close the SDK Manager and reopen it. You will find the SDK platform for the android x will be shown as installed.
This tutorial explains it in detail,
How to install android sdk platform offline

Related

How to add SDK files manually that needs a package.xml in android studio?

I have just installed Android studio and it needs to download some SDK files. But my internet connection is slow and the download keeps failing.
so I took the links and downloaded all SDK files manually with my download manager and then I unzipped them and put them in SDK path which in my case is:
C:\Users\USERNAME\AppData\Local\Android\Sdk
the problem is when I open Android studio it still downloads these SDK files. I don't know how to tell android studio that these files are already downloaded. Can anyone solve this?
Android Studio that I am using is version 4.0.0.
Check the images for more information:
And when I click the edit:
And after clicking next:
I finally figured it out. the SDK manager add a package.xml with some details after it download the sdk components and unzipped them. so manually unzipping sdk components to sdk folder won't work because sdk manager won't know if the component is already installed and it tries to download it again. (note: not all sdk components need a package.xml and work properly if you manually unzip them into sdk folder.)
Solution:
1- you should download the components manually with a download manager if you don't have the sdk components zip files. you can get the files link from the sdk download log:
2- wait until the downloading of that specific component fails. like in the picture
3- then the sdk manager start the download of another component, in the meantime you should go to sdk folder and inside .temp folder you would see folders with names like packageOperation followed by a number. in each one of this folders is a sdk component download file (in our case failed download) that probably has an extension of .asdownload.
4- Delete the file with .asdownload and paste your fully downloaded zip file.
5- you can follow the steps for every sdk component. at the end the sdk manager will give you a retry option if there was any failed downloads. click retry, this time the sdk manager won't download the sdk files that failed (because of the sdk zip files that we manually pasted inside packageOperation folders) and it automatically installs them.
and that's it. you should see sdk components finishes successfully.
In Android Studio Settings -> Appearance & Behaviour -> System Settings -> Android SDK.
In this, there will an option for Android SDK location. Choose the directory of your Android SDK & it will use the SDK from that location.
Note:
I am using 4.1 canary 10.
In case, you don't find the setting in the above-mentioned path, open Android Studio, and search for SDK.
Android SDK >> Android SDK location >> Edit >>(C:\Users\USERNAME\AppData\Local\Android\Sdk)
then click Apply >> Ok

Android SDK is not installed with Android Studio IDE

so I've downloaded the Android Studio IDE from the official website, installed, and run it. When I try to create a new project this is what I get:
Obviously I click on (open SDK manager):
I then click on (Edit):
At first, the directory /Android/SDK was totally missing, so I added it manually by creating the two folders Android and SDK in the directory C:\Users\Sam\AppData\Local\ . Which led to the line "target folder is neither empty nor does it point to an existing SDK installation". The SDK manager was never Installed, I couldn't find it in the directory mentioned. Therefore, I downloaded the SDK tools and put it in the directory specified, but that didn't work. An SO thread has suggested that I don't have enough storage space for the SDK, but I have almost 31GB of empty space on my C:\ drive, another one has suggested that I have a proxy/ http problem but I don't think that this is the problem here since I've downloaded the IDE with no problems.
After I hit next this is what I get:
Now how could the SDK could be is up to date while there isn't any SDK to be seen?
I'd appreciate some help, have a nice day
this error may arise when your sdk folder not a 'platforms' folder and you must make an empty folder and rename it to 'platforms'. platforms folder must be in the sdk folder.
I downloaded SDK installers alone and solved the problem. One site to get the installers is: SDK Installer

Android SDK tools installation for Unity

After I installed an older Unity version (5.6.0f3) I can't build a simple android app:
Unable to list target platforms. Please make sure the android sdk path
is correct. See the Console for more details. See the Console for
details.
As I understand I need Android tools 25.2.5 or earlier in order to build android apps in Unity 5.6.0f3.
According to this instruction I need just to add the path of the unzipped SDK to the Edit -->Preferences ---> External Tools --->SDK box. The problem is that after that Unity is not accepting this path and asks me to choose a different one.
While following this instruction, since I have a mac, I downloaded and unzipped the file and double-clicked android.bat and installed the recommended packages. But the problem remains, I still see the error message.
What might be the problem and how it can it be fixed?
Thank you in advance!
The reason Unity does not accept the path is because you are not linking the right folder for the sdk path. You may have to play around with the inner/outer folders of the sdk path in order to get it right.
On my mac the file path after installing the sdk is Library/Android/sdk (this is installed from Android Studio so that path may be a bit different).
And on my windows the correct folder is just the unzipped outer folder e.g tools_r25.2.3-windows
SDK / ADK: is the path to the folder that contains "platform-tools" folder (which contain ADB binary)
JDK: is the folder that contains the bin folder that contains java / javac (comipler) binary
NDK: download and unpack this massive ugly zip with 56k files in it. It should be version r13b - untiy doesn't like newer versions. No need to install anything
Thankfully for new versions of Unity assist you in managing those dependencies via the hub, but I am posting the screenshots for future reference as I often find myself looking for the very same answer

how to build android apk in non-gui linux server

Want to set up a linux server only to build and test, and I found Android does not offer sdk only package anymore.
Previous sdk download page was redirect to studio download page.
I need android sdk package. but now Android only supply the sdk-tool, in my mind sdk-tool/ is under sdk/, like path-to-sdk/tools. When android project builds, I need to set env $ANDROID_HOME, and $ANDROID_HOME is the directory of the sdk/ not the sdk/tool/
I try the android-studio-linux, but the pack I unzipped can not found android sdk, it seems android download sdk on first run.
I try the to find the android-sdk, but only get the older releas.
Please give me some suggestion, how to build android apk in non-gui linux server, the server is Ubuntu 64bit.
Well they still offer, they just have moved it to bottom to promote Android Studio more over other other IDEs.
Check the bottom of the page or just use this link to download it for linux. You can very well use gradle to build and package your app so if there is actually no compulsion of using Android Studio.
Update Also this document explains how to develop Android apps/libs from commandline.

Android Development - Installation gone wrong?

I followed a tutorial to install Eclipse and the Android development files onto an Ubuntu (Lucid) installation and Iv a feeling things are not quite right.
The tutorial can be found here.
The problem seems to be that because everything was installed into the /opt folder I am unable to load any of the sample files because of course they are read only, and I'm unsure about how safe it would be to run Eclipse as root.
My thoughts were to remove all of the Android files and start again and set the location in my /home folder somewhere, but I am unable to find any information on actually removing it (Or if this is in fact the best thing to do).
Here's what you need to do:
Install the latest java JDK.
Within eclipse, install the android ADT plugin http://developer.android.com/sdk/eclipse-adt.html
Download and install the android sdk http://developer.android.com/sdk/index.html
Run the AVD manager (in the android sdk) to install the platform components. (this can be ran from within eclipse)
In eclipse, go to preferences/android and set the SDK path.
Create an android application!
Good luck!

Categories

Resources