installing android offline is hard[obsolete] - android

i am a student in africa and in our land, there actually exist slow and expensive internet connections, which is why we tremble in fear whenever we hear the word "online repository" method of installing software. Damn, that usually means you have to look elsewhere.
The problem.(i cant install android without connecting eclipse to the internet)
It is possible to manually download individual components as .zip files but there is no way of installing them into android eg i have managed to download
platform-tools_r03-windowsandroid-sdk_r10-windowsetcbut no matter what i do, i can't get android to recognise them as components. It seems tens of thousands of other developers have a similar problem (see below)
This qn has 10k views(meaning 10k people had a similar problem)
another lost developer
webpage sudgesting solution that failed to work on windows seven ultimate
If someone has actually ever installed android without connecting eclipse to the internet, please let us know the magic you used. Thanks in advance :)
EDIT:
if someone out there is still interested check out http://qdevarena.blogspot.com/2010/05/download-android-sdk-standalone-for.html
and make sure your folder structure is as shown in http://developer.android.com/sdk/installing.html

For SDK and platform tools you can just extract the zip content, Eclipse has nothing to do here.
For Eclipse ADT plugin:
Download the zip file from http://dl.google.com/android/ADT-10.0.1.zip
Help -> Install New Software -> Add
Select Archive and then provide the location of the zip file
These steps are clearly explained in Eclipse ADT documentation.

Only in Windows
Install (if not installed) Oracle JDK jdk-7-windows-i586.exe
install Eclipse SDK
Add to the PATH environment variable the path to the JDK (for example c:\Program Files\Java\jdk1.7.0\bin)
Edit the file hosts (c:\WINDOWS\system32\drivers\etc\hosts), add the entry "127.0.0.1 dl-ssl.google.com"
It's important! Port 80 must be free at the time of installation Android SDK
Run the Abyss Web Server X1 (abyssws.exe). Works best if you download a fresh copy
Run the Android SDK "SDK Manager.exe" installer
In the "Android SDK Mannager" in the menu "Tools" >> "Options" put the check ("force https:// ... sources to be fetched using http:// ...")
Android SDK Manager will fetch packages in your computer. Choose the packages for API you want to program against, select and install packages
After installation the file hosts (c:\WINDOWS\system32\drivers\etc\hosts) entry "127.0.0.1 dl-ssl.google.com" you entered in step 3
Good Luck!! and remember to update to lastest APIs and revision
You can download Eclipse ADT and install
IN Eclipse: Click Help tab and Install New Software tab
Click add button
In Add Repository Window, add in Name Field Eclipse ADT and Location field click archive to browse in local machine where you downloaded ADT
Press Ok and tick all, Eclipse will install the less

The answer by dtmilano is not valid for the current version of android SDK. (androdi 4.2.2)
The android website says that after the unzipping of the ADT:
Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to Adding Platforms and Packages.
http://developer.android.com/sdk/installing/installing-adt.html
Instead, try
http://qdevarena.blogspot.in/2010/05/download-android-sdk-standalone-for.html
as mentioned by
Installing android SDK in eclipse offline

I'M a Ghanaian..I did it about a week ago on ubuntu it might work on windows
your question indicates that you have eclipse installed..so i will just move on to setting it up to run android apps ...
step 1: go to developer.android.com to download the sdk for windows(i recomend you download the one with the installer).
step 2: launch ur favourite browser and open this site.
you will see an xml page using ctr+f (any shortcut for finding a text on your browser) type andoroid 2.2 or any android version you like latest is kitkat 4.4...you will find ur prefered android version in zip file for ur OS i.e windows...just copy the text and append it to this address.
this will download the the platform for you in .zip format....just navigate to where you extracted ur sdk and go to platform folder and then create a new folder with any name and then extract the platfor you downloaded earlier i.e android version into the new folder you created...just launch the sdk.exe and it will auto detect your platform for you...
just go and creae your Android virtual device and start running your apps..

Related

Android Studio Not Including SDK

I'm trying to setup Android Studio on a new install of Mac OS X Yosemite. I downloaded the Android Studio Beta v0.8.14 from here: https://developer.android.com/sdk/installing/studio.html and upon launching it complained about not having an SDK (although the download page indicates it should include the SDK). I tried searching after installing for the SDK and can't find it (a few other posts indicate /Applications/Android Studio.app/sdk but that location doesn't exist). Where is the SDK installed and what is required to set it up?
Go to the SDK Manager and click Edit... next to the field for the location of the SDK. Then an "SDK Setup" window should display. There you can download the SDK.
Edit: This answer is deprecated as Android Studio seems to bundle everything since a while already.
Old answer
It seems the android-studio-bundle version is no longer available in the download page (instead there are only android-studio-ide). When you start Android Studio, it won't let you create a new projet until you configure the SDK location.
That means you have to download the SDK separately here, extract it somewhere, and configure it on Configure->Project Defaults->Project Structure. After that, the SDK Manager icon will be enabled and you can download the tools you want.
I had the same problem on Windows. After I re-installed it a few times, I found that the SDK was installed but hidden in C:\Users\<user name>\AppData\Local\Android\sdk.
Information for Windows
For some reason, which I have no time to investigate, Android seems to provide, currently, the IDE and the SDK separately, while in the Dev Webpage says the opposite.
This is the "complete" (false!) tool I have just downloaded: android-studio-ide-171.4443003-windows.exe (SDK is missing here, note the "ide" in the file name).
And this is the real complete tool I had downloaded few months ago, from the same place...: android-studio-bundle-162.3871768-windows.exe
Note that this last one has the "bundle" in the file name.
Please, download the bundle (IDE+SDK) from here:
https://dl.google.com/dl/android/studio/install/2.3.1.0/android-studio-bundle-162.3871768-windows.exe?hl=ko
I want to suppose (¿?) that similar link you can find for Linux or macOS just Googling for it.
Hope this helps!
It worked like this for me
Downloaded the Android Studio
Install Android Studio
Open Android Studio after installation.
You will get a dialog box to import settings if you already have Intellij installed on your machine. Say "Do not Import". Otherwise continue to next step.
It will ask you in the dialog box to pre-configure such as theme, path etc.
Just click next next...and then Finish. You will see the SDK tool will start downloading.
After installation is finished. You can find it in this path: C:\Users\<user name>\AppData\Local\Android\sdk
If you have ever installed Android Studio before and then removed it, it won't reinstall the SDK automatically (speculation: some Windows setting somewhere).
The solution is starting Android Studio and then
File -> Manage IDE Settings -> Restore Default Settings
This will wipe any custom settings you don't have at this point and trigger the SDK install
What Pablo wrote is misleading.
This is the "complete" (false!) tool I have just downloaded:
android-studio-ide-171.4443003-windows.exe (SDK is missing here, note
the "ide" in the file name).
Yes, it is IDE only, but after you install this IDE and first time run it, SDK will be downloaded automatically. So there is no need to download some outdated bundles. Just use default "green button" on https://developer.android.com/studio/index.html
I'm using Ubuntu, and had previously installed Android Studio. It was using too much space, so I deleted it. Now when I downloaded it and started ./studio.sh, it found my previous installation configuration directory and asked to import from there. I did, and then this problem occurred.
I put the directory .Android Studio 3.3 in the trash and restarted ./studio.sh, and it imported the SDK automatically for me. That was good, because I couldn't find it where it was supposed to be according to the dialog box. The 3.3 above is from the version of Android Studio I was installing.
in my case, my country is forbidden from google, and my PC's time zone was set by my counrty.
after I change my timezone to another country my problem solved and android studio download SDK and nkd easily
Re-install studio. If ANDROID_HOME is set to custom location then it will install sdk there else it will install SDK in C:\Users<user name>\AppData\Local\Android\sdk
Note:this is a temporary fix
If you have Eclipse then you can use that SDK for emulation.
Just run the sdk manager and emulate a version of android. Then while you are asking for emulating something ie while running code it will show your emulator as online and you can even use it.
Hope this helps you.
All the Best...

Error: This Android SDK requires Android Developer Toolkit version 22.6.1 or above

I have installed adt version 22.6.1 already 2 days ago. It was working fine. Suddenly, When I open eclipse today, it keeps showing me following error:
This Android SDK requires Android Developer Toolkit version 22.6.1 or above. Current version is 22.2.1.v201309180102-833290. Please update ADT to the latest version.
Here is screenshot of my eclipse's Android SDK Manager :
I tried with following steps to resolve my issue as discussed in this Link
Help | Install new software
Select the ADT update site (there are two, one with http:// and one with https://. If one doesn't work, try the other.
Select the developer tools section and press next.
You should see a dialog that says This software is already installed, an update will be performed instead. Clicking OK will lead to 22.6.1 being installed.
But unfortunately it didn't work for me.
Here is a screenshot I am attaching which shows the error I am getting while updating the tools.
How can I get rid of it?
I have solved this issue yesterday.
Follow the steps :
Help -> Install New Software -> Add -> (Give any name suppose NewUpdate) -> add this url : https://dl-ssl.google.com/eclipse/plugin/4.2 -> OK
Now it will list the available updates, which should ideally be adt 20.x.x
Select the list items Let it be installed. Eclipse will restart and Its done.
I hope this will helpful for you :)
Yet, if someone is facing this issue, Then follow steps below:
download new stand alone SDK from android's developer site
Close eclipse if it is opened and copy new downloaded sdk in the same location where your already existing old sdk is. Must replace conflict files and keep rest.
No need to delete old sdk. Copying as in step 2 will update your Android Developer Toolkit version to 22.6.1 or above which is required and will keep already downloaded APIs.
Now start your eclipse, and the error will be gone forever. :)
if someone will have trouble doing so, leave me a comment, will try to guide.
I managed to resolve it by doing the following:
Downloaded latest ADT (Win x64)
Deleted my old ADT install (It got bugged when I simply tried to overwrite the existing files) - see this google issue
Copied the zip file to C:\ (since it was complaining about too long filenames while unpacking)
Unpacked to my ADT install folder.
Ran updates and SDK manager updates.
Now it's working, but I lost my pretty Eclipse theme. Oh, and the target adt is not being resolved, a problem for another topic.
Just delete the existing ADT and install new version of ADT.generally this problems occurs
when you update SDK using below link.
https://dl-ssl.google.com/android/eclipse/
The ADT Bundle on developer.android.com seems to me as out of date.
I fixed the same problem by downloading eclipse (Java EE was my choice, but you can choose your flavor) and Installing the Eclipse Plugin
this steps solve my problem:
go to Help -> Install New Software.
in the bottom box, click What is already installed? text.
then you will see Eclipse Installation Details box, please Uninstall all conflicts software, in my case I uninstall the following software:
Android DDMS
Android Development Tools
Android Hierarchy Viewer
Android Native Development
Android Traceview
Tracer for OpenGL ES
when uninstall complete, please restart your Eclipse.
after your Eclipse open, please follow again these steps:
go to Help -> Install New Software.
in Work with box, select or add {ADT Plugin - https://dl-ssl.google.com/android/eclipse}.
then check all available software.
click Next > to install newest software.
I hope this helps you :)
I use OSX and facing the problem for 2 days.
I solved the problem by following the steps below:
-Download ADT Bundle from https://developer.android.com/sdk/index.html
-Help -> Install New Software
-Write https://dl-ssl.google.com/android/eclipse/ then install Developer tools
-Restart eclipse and raised the error below:
Android SDK content Loader has encountered a problem.parseSdkContent failed
java.lang.NullPointeException
-Delete .android folder under user profile. Restart eclipse
No errors and 22.6.1 is installed.
For those who tried everything but didn't get any positive result. I did the following and it worked:
Uninstall the ADT by helping from following link:
Uninstalling Android ADT
Now you can follow the install new software to add ADT to your eclipse. This way you won't get any conflict since you uninstalled old version.
I currently have Eclipse and ADT installed in the same directory as
F:\eclipse
\eclipse\
\sdk\
I downloaded and installed the latest ADT to
C:\Users\Rick\AppData\Local\Android\android-sdk
I then copied the contents of the C:\Users\Rick\AppData\Local\Android\android-sdk into the F:\eclipse\sdk\ folder, and let it merge all folders and overwrite everything.
Now I have 22.6.1 and I don't have to re-download all the platform stuff again.
Today me and one of my friends faced the same problem, so I have tried many things like restarting eclipse, checking updates, etc. but none was working for me.
Then I found a solution from Here and it's working as a charm for me and also for my friend.
Follow the steps here:
Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for
the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to
Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded.
Click Next. Read and accept the license agreements, then click
Finish.
If you get a security warning saying that the authenticity or
validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
The "Install new Software" under help in Eclipse will NOT work because it conflicts with ver#22.
I just downloaded the new Eclipse bundle from:
Get the Android SDK - google site, extracted it in a new folder ant it is done.
It is working smoothly, no problems.
Few tips to save you time:
Backup your workspace (just in case) - personally didn't use this back.
Once you open the new eclipse.exe it will ask you to select a workspace - just brows to your ols workspace and it will import all your projects (no problems).
In order to save time of download and install of the SDK again, I Cut & Paste the OLD SDK library from the previous bundle directory to the new one (Close your new Eclipse first).
When you re-open Eclipse, you may receive an error message saying that Eclipse can't find the SDK directory. It will ask you to open "Preferences". Once open, browse to the new SDK directory (the one that you just copied). Doing this will save you hours of re-installing all the SDK updates that you did on the previous Eclipse.
Have fun, it is really not a big deal.

Android-studio Selected directory is not valid home for Android SDK

I installed android studio but while selecting android SDK I am getting following error. I tried solution which is on this post but no luck. How can I solve this?
I had this problem, select SDK folder (NOT SDK->sources or SDK-platforms)
I resolved with the instructions here,
http://www.blog.teamguru.in/2018/04/06/selected-directory-is-not-a-valid-home-for-sdk/
Just close current error window and let run the android studio
Open the SDK manager as shown below
Click on Edit SDK location as shown below
Simply press next button if there is correct location for SDK you want to install there
Let it be downloaded
Install platform and SDK tools and
Enjoy
Try restarting the application. Close all related studio processes, then right click "run as administrator".
You should be fine after this.
I got the same issue. You must enable the Android Support Plugin
Configuration > Plugin > Android Support Plugin. Check it.
Close error window
Go to gradle tab
select "Gradle settings", wrench icon
Search for SDK setup
Select appropriate sdk for your device.
Next, two times
Wait for install
There is all..
None of the other answers work. After the installation, immediately close Android Studio, then start it as administrator. A message might popup asking for the sdk manager location. Ignore it (Close the popup). Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location. Then click Next, next and you're good to go. Android Studio will let you install the sdk manager.
I had the same problem but what I found is that it requires the parent folder of the following things AVD manager,SDK manager,tools,platform-tools,build-tools etc.So what you need is to find the parent directory of these things, which you might find with a name such as android-sdk or android-sdk-windows(in case you are using windows OS).Make sure the above said contents are in that folder and select it.I hope you will find this useful.
Download the SDK from http://developer.android.com/sdk/index.html
Start SDK manager and make everything up to date
Also, make sure you have set the language level to
7.0 Diamonds, ARM, Multi-catch, etc
I had this problem on Linux. Apparently you need write access to some place in that directory, so I just took ownership of the entire thing:
sudo chown -R thomas:thomas /opt/android-sdk
Could be that something similar is going on on Windows as well.
If like me, a MacOs user which has installed Android Studio on my Mac and if you've tried everything you can think of but was still unable to set the Android SDK directory in Android Studio, follow the next steps (I know the site where I got the bundle is a freeware site but the package is the right one):
1. Download adt-bundle-mac (Android Developer Tools) from [here][1].
2. Unzip the file and browse into the unzipped folder.
3. Copy only the sdk dir to /Users/username/Library/Android
4. Open Android Studio, the error about the SDK folder which is not set will pop up, set the path to the SDK to "/Users/username/Library/Android/sdk".
5. Now Android Studio will accept the path and you're good to go.
I wasted about 2 hours until I fixed it so I hope that by writing this answer I'll save you some 2 hours.
The sdk folder contains the platform-tools folder.
I copied this folder and named it platforms, then it worked for me.
Just delete(preferably permanently) all the android directories in whatever location they are present(e.g. C:\Program Files\Android, C:\users\respective user\respective android folders). Remove the installer as well(if possible). Make sure to save all your Android Studio files in some external storage (preferably).
The main thing is to get Android studio with SDK.
Now go to the android studio website and install android studio leaving all settings default. There you will also get to install the SDK and it's linking.
It will take some time to load and will load nearly 1.5 GB files.
This worked for my case.
In my case I wasn't giving him admin permission
Steps to follow:
Close Android Studio.
Restart Android Studio and Give the path of Empty Folder .
Install Sdk in that folder(Sdk will automatically install and will get configure automatically.)
With Android Studio 4.1.2 the easiest thing is to close the project (file / close project). That's how you get to the wizard that automatically sets up the SDK for you.
The default location that it suggests is /Users/stan/Library/Android/sdk (exactly the same that I was trying to set up manually but AS kept saying it's invalid)

Could not find folder 'tools' inside SDK

I am doing Android Development using Eclipse. I have downloaded all the required software, but I am having the same problem as discussed in "Unable to set up Android Target in Eclipse". Now I do not find the solution of the problem on that discussion so let me rewrite the problem again,
When I load Eclipse and create a new Android project, it keeps on waiting for the ADT to load. To figure out what is wrong I went to preferences and tried to put the location of the ADT I created in it but it keeps giving me this error when I put the address of ADT,
Could not find folder 'tools' inside SDK 'E:\Documents and
Settings\me\android-sdks'..
How can this issue be resolved?
I created the folder tools manually, now I am getting this error:
[2011-12-24 15:23:56 - DDMS] DDMS files not found: E:\Documents and Settings\me\android-sdks\platform-tools\adb.exe E:\Documents and Settings\me\android-sdks\tools\hprof-conv.exe E:\Documents and Settings\me\android-sdks\tools\traceview.bat
[2011-12-24 15:42:06 - DDMS] DDMS files not found: E:\Documents and Settings\me\.android\platform-tools\adb.exe E:\Documents and Settings\me\.android\tools\hprof-conv.exe E:\Documents and Settings\me\.android\tools\traceview.bat
If you install Eclipse properly then:
Start Eclipse
From the menu bar, select Window > Preferences > Android
For Android location, browse the folder in which you install Android SDKs.
In Android SDKs folder, rename the folder platforms-tools to tools.
Select the folder Android SDKs through Preferences dialog box.
If I get you correctly you have just downloaded Android sdk and want to configure it working with Eclipse. I think you miss one step from the installation of the sdk:
1) you download it
2) you extract it somewhere
3) then go to the specified directory and start AndroidManager (or was it just android??). There you specify you need platform-tools and the manager will configure that for you. This will also provide you with the 'adb' executable which is crucial for the Android developement.
After that you install ADT (which I think you already did) and from Eclipse preferences -> Android options you get a place to specify where your android-sdk is. If you specify it after you did the 'step 3' you should be good to go.
I am not 100% sure I got it correctly and what your state is, so please forgive me if my comment is irrelevant. If I am wrong I will be happy to help if you provide some more details.
Something I am completely sure is that you shouldn't need to create the folder 'tools' by yourself.
PS: The description I gave is for newer versions of android sdk, but if you are encountering a problem with older version I will recommend you to start from scratch with newer version. It shouldn't take you that long time.
This can also happen due to the bad unzipping process of SDK.It Happend to me.
Dont use inbuilt windows unzip process.
use WINRAR software for unzipping sdk
By default it looks for the SDK tools in "C:\Documents and Settings\user\android-sdks". Some times we install it at another location. So you just have to select the correct path and it will done.
I faced similar issue when the SDK tools installation was failed during the initial setup. To resolution is to download SDK tools from Android Developer Site
Expand "USE AN EXISTING IDE" section and download standalone SDK tools
Choose your destination as (%HOMEPATH%\android-sdks)
Now start Android-SDKs folder and run SDK manager
If you get the "Failed to find DDMS files..." do this:
Open eclipse
Open install new software
Click "Add..." -> type in (e.g.) "Android_over_HTTP" and in address put "http://dl-ssl.google.com/android/eclipse/".
Don't be alarmed that its not https, this helps to fetch stuff over http. This trick helped me to resolve the issue on MAC, I believe that this also should work on Windows / Linux
Hope this helps !
In my case i was using Ubuntu. Where the was two directories one was /android-sdks
and /android-sdk-linux. I used the second one it works for me :)
My solution was to remove the Eclipse ADT plugin via menu "Help > About Eclipse SDK > Installation Details". Eclipse will restart.
Next go to Menu "Help > Install New Software", then add the ADT plugin url "https://dl-ssl.google.com/android/eclipse" (or select the existing link from the dropdown).
This will re-install the latest ADT, including the DDMS files.
For me it was a simple case of specifying the path to the 'sdk' subfolder rather than the top level folder.
In my case I needed to input
/Users/Myusername/Documents/adt-bundle-mac-x86_64-20140321/sdk
instead of
/Users/Myusername/Documents/adt-bundle-mac-x86_64-20140321

Unable to install platforms/USB driver for Android r15

First of all, I'm a student that wants to work with Android for my internship. Here is a link about my upcoming question, but he did not get a good awnser yet: Unable to Install Platforms for Android SDK r15
After reading some about android I started the download and install. I got a SDK manager and a AVD manager. Got eclipse etc too. But no SDK and AVD manager like I see everywhere on the internet. I searched everywhere and I can install some things manually, but that isn't handy.
So with my SDK manager I cannot download the platforms I want. Maybe I need to download an older reversion of the SDK, so I get the SKD and AVD manager instead of seperated.
Please take a look at the link. Sorry for my bad english, it's not my native language.
Anyone got a solution for downloading the platforms/Google USB driver/etc.. in the SDK program itself?
Thanks in advance
when you installed the SDK manager into the eclipse with a install new software method as spefified in the android developer installation files.
Downloading the ADT Plugin
Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.<>
Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.
Start Eclipse, then select Help > Install New Software....
Click Add, in the top-right corner.
In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
When the installation completes, restart Eclipse.
after that ... you can can install the SDK from this link... now in the eclipse open the preferences --> Android. specify the path to your SDK root directory... that is it... now press the ADT plugin icon and then you can download any version you want...
UPDATE:
i think the version of eclipse is quite wrong it is better and safer to install the eclipse classic version... the jdk can be decided upon what is you base system. once you have the JDK as 32 or 64 bit download the appropriate eclipse classic version(almost every one does it except with really specific java development{which can be installed/customized any time later}) and helios or indigo i don't think that would matter ... until and unless the ADK supports it. Everything is taken care of by it.

Categories

Resources