Android compatibility library (Android support) install problems - android

I am trying to install the Android Support package (previously known as the Android Compatibility Library, I think) using the SDK Manager, but it keeps (silently) failing to install.
According the the documentation, it should install to my /extras/ directory, but after what looks to be a successful download and installation from the SDK, the directory is empty. There are no errors in the SDK Manager log, and the module says that it is installed in the list of "extra" packages......but it is not!
Has anyone else had any experience of this?
I'm using Wnidows Vista + Eclipse.
Cheers,
Chris

So - couldn't figure out why the SDK Manager won't install it, but I did find this link on StackOverflow that explains how to manually download packages from the Google repository (this is explained in an external blog here)
This means that I can at least download the .zip file and install it manually!

Try to run the SDK as admin from the location you had installed.

Alternatively, you could just not use eclipse at all and add the .jar to your build path manually.
Create a directory called "libs" in your project explorer.
Drag and drop the support package file (.jar) into your new "libs" directory.
Right click the .jar file and click "add to build path".
And there you have it :)

Related

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 manager does not have any extra folder to install android support repository

i can't find extra folder in android SDK manager .
can anyone help ? i searched and nothing found
i want to install android support repository and there is nothing
Extras have been removed You can find anything you want that existed in the old SDK manager in SDK tools tab
If there are multiple user profiles for the machine then it works only for one user.
Android Studio has to installed for specific user. So check once installation is done with same user profile
i found the answer . just download the android support repository(a zip file) manually and after unzip copy and replace with the m2repository folder in the extra folder in sdk path.
after doing this android support repository and much more option added to sdk manager like this :

Can't find SDK folder inside Android studio path, and SDK manager not opening

I have installed Android Studio for the millionth time but when i go to C:\Program Files\Android\Android Studio , i can't find any folder named "SDK" , can't find it any where on the computer either.
Also, the SDK manager doesn't open, which i guess is a problem linked to the first one.
If you have downloaded the AS + SDK bundle:
Assuming the defaults were left unchanged, you will find the SDK in
C:\Users\%USERNAME%\AppData\Local\Android
If it is missing at this location, one of the following reasons apply: you have chosen a custom location, you missed to install the SDK at all, or (unlikely) they have changed the default install location.
Note #1: the AppData directory is hidden by default. If you have a standard Windows configuration, the C:\ path above should work "as is" (hit Win + R -> paste the path -> Enter).
Note #2: you will never find the SDK in the Android Studio directory unless you have explicitly put it in there. The reason is that those directories might be deleted after installing a newer version of Android Studio and you would have to re-install the SDK as well.
If you have retrieved the standalone SDK by some other means:
The SDK location may vary (from my experience), however (assuming the default configuration) you will most likely find it in C:\Program Files\Android or C:\Users\%USERNAME%
Tools > Android > SDK Manager > there you'll see the path to SDK
If you don't have it at C:\Users\%USERNAME%\AppData\Local\Android (this is where most people have it) than it is possible you don't have it installed. Go to Tools > Android > SDK Manager and then click on "Android SDK." On the top of the SDK Manager it will list the SDK Location. Click edit. If you don't have Android SDK installed, it will give you the option to install it in certain location. Install it, and Android Studio should work!
SDK folder by defalut is in C:\Users\<user-name>\AppData\Local\Android. And the AppData folder is hidden in windows. Enable show hidden files in folder option, and give a look inside that.
Make sure all the folders are visible.
click start>control panel>Appearance and Personalization>Show hidden files and folders then click "Show hidden files, folders and drives"
The file should be in C:\Users\Username\AppData\Local\Android as mentioned above. otherwise you can check by opening Android SDK Manager - top left under SDK path.
If SDK folder is present in system, one can find in C:\Users\%USERNAME%\AppData\Local\Android
If Android/SDK folder is not found
Once done with downloading and installing Android Studio, you need to launch studio.
On launching Android studio for the first time, we get option to download further more components, in that we have SDK.
On downloading components one can find SDK under Appdata (C:\Users\%USERNAME%\AppData\Local\Android)
I had to open Android studio and go through the wizard. Android studio will install the SDK for you.
If your are using android studio go to file >> project structure on the left pane press on SDK location . you will find the path where your sdk is located
When you install the android studio just by downloading from https://developer.android.com/studio/install.html sometimes sdk folder will not get appear in C:\Users\home\AppData\Local\Android Location..
But to set the android studio we need to set the path for android on this location.
So simply
1) start the android setup.
2) follow the instruction and android studio will automatically download the sdk folder by itself. (it will show the window like "Downloading Components").
After completing that installation check the above path again.
sdk folder will get appear now.
I faced the same issue. And I am able to resolve it by uninstalling the previous version I had, and removing the Android studio projects and reinstalling it.
And then go to Settings-> Android Studio -> Click on edit, to specify studio location, it will recognize the requask you if you would like to download sdk,
So I was trying to root one of my old phones and process required Android SDK. When I searched Android SDK, all i could do was download and install Android Studio. Everything went fine and smooth, till I tried to look for SDK in installation. I could not find it under Android Studio installation. But after a little search on Google and Android Studio configuration on my computer, I was able to find it at
C:\Users\username\Android\sdk
I hope that helps.
C:\Users\*********\AppData\Local\Android\Sdk
Check whether the USERNAME is correct, for me a new USERNAME got created with my proxy extension.
I found it in /Users//Library/Android/sdk
For me it was :
C:\Users\{your-user-name}\AppData\Local\Android\Sdk\tools\bin
Hope it helps!
After installation if you get a message about Proxy, it means that you're probably behind a firewall. You can create a new Outgoing firewall rule to include it. Add this to Allow:
C:\Program Files\Android\Android Studio\bin\studio64.exe
It will then download required SDK components
Once that's done, SDK will be in:
C:\Users\your_user_name\AppData\Local\Android\Sdk
For anyone who really can't find the SDK, you can manually download it from android studio.
File => Settings => Appearance & Behavior => System Settings => Android SDK
If you do not have a SDK (or did not select the right folder), you will be asked to select the SDK version and the folder where the SDK will be installed.
This is how I fixed by SDK not found problem.
System: Ubuntu 16.04 LTS, yet you can try these steps in accordance to your respective systems.
If there is an SDK file present, it should be most likely found at /home/USERNAME/Android/sdk
USERNAME is to be replaced by your username
If there is none, check the specified sdk path for the project in android studio.
File > Project Structure > sdk path
The sdk directory should be present in the specified path. In case, it is not there, open the file:
PROJECT_DIRECTORY/android/local.properties
PROJECT_DIRECTORY needs to be replaced by your project name.
If the file is not there, create it.
Then add the following line depending on where you find the sdk directory.
If sdk is there at /home/USERNAME/Android/:
add the line: sdk.dir = /home/tanya/Android/sdk
If sdk is not there at /home/USERNAME/Android/:
add the line: sdk.dir = /home/tanya/Android/
If the path specified for sdk directory in 'Project Structure' is entirely different and the sdk directory is present at the specified location,
add the line: sdk.dir = SPECIFIED_SDK_PATH
Add the specified sdk path in place of SPECIFIED_SDK_PATH

How to attach Android source to Eclipse?

While trying to debug a program I wrote in Eclipse for Android, I receive an error saying there's no source attachment for android.jar.
How do I get that source attached to Eclipse to continue my debugging?
In Eclipse:
Window > Android SDK Manager, install "Sources for Android SDK" under Android 4.0
When prompted by "No sources attached...", click the button, then choose the Directory "your Android SDK directory/sources/android-API level/"
Example: C:\...\android-sdk-windows\sources\android-16
If you really want to have the android.jar sources, follow these easy steps: (for Eclipse IDE)
Install plugin Android Source by going to Help->Install New Software-> add this site: "http://adt-addons.googlecode.com/svn/trunk/source/com.android.ide.eclipse.source.update/". Select Android Sources from the list, click Next, and install like usual. Restart Eclipse when prompted.
If sources are still not attached, attach them manually. You will find the sources in the plugin folder usually ECLIPSE_PATH\plugins\com.android.ide.eclipse.source_MAY_BE_VARY\VERSION
Depending of the version of Android, they'll be in the different folders. (eg: for Android 4.4 the sources are in folder named 14). Sources will be in source.zip archive.
In Eclipse package explorer:
Right click on android.jar then Maven->Donwload Sources.
Wait a bit until the process is finished and you're done. (I am not sure if checking "Install Sources" in Android SDK Manager is a prerequisite for this, but you can try and tell us)

platform-tools\aapt.exe directory missing in android SDK

I'm trying to get 'hello world' working on the Android SDK with Eclipse. I'm following this tutorial step by step:
http://developer.android.com/resources/tutorials/hello-world.html
but i'm returned the error "Error executing aapt. Please check aapt is present at C:\android-sdk-windows\platform-tools\aapt.exe"
For some reason, the "platform-tools" folder does not exist under my installation. In its place I find "platforms" and "tools". Presumably, my SDK version is different to that used in the tutorial.
I can't work out what i need to change or update. Can someone please point me in the correct direction?
Thank you
Totally agree with izzy, but other times (usually on 64 bit OS machines or with multiple android platforms) when you install the latest SDK version the folder platform-tools had missing the "appt.exe".
To solve this you need to search on *android-sdk\build-tools* folder and subfolders like \build-tools\17.0.0 in my case, and you will find aapt.exe, other necesary files and lib folder, just copy it everything to android-sdk\platform-tools and it will be done.
sometimes you may get the error that it can not install because it can not create the temp folder to install the tools. You simply just need to run the SDK manager as administrator and this will allow it to all work out.
if we will face appt.exe issue (could not found) just Follow the below steps:
1. Just Read It(https://developer.android.com/studio/command-line/aapt2)
Navigate to (ctrl+find and search) com.android.tools.build > then go to aapt2 from this url (https://dl.google.com/dl/android/maven2/index.html)
Insert the version name you copied into the following URL and specify your
target operating system: https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/aapt2-version/aapt2-aapt2-version-[windows | linux | osx].jar
For example, to download version 3.2.0-alpha18-4804415 for Windows,
you would use: https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/3.2.0-alpha18-4804415/aapt2-3.2.0-alpha18-4804415-windows.jar
Extract the jar file, Change the name aapt2.exe to apt.exe
Copy and paste into your android-sdk -> platform-tools
Run the program, Issue will be get resolved
Note: Means you have to download and set the aapt.exe path in System Environment Variable
*What version of the SDK are you running? (1.5_r2 or something?)*
I would suggest updating your SDK and be done with it ;)
You can do so trough the "Android SDK and AVD Manager".
Eclipse:
menu->window->"Android SDK and AVD Manager"
You might also want to change this setting:
menu->window->preferences->install/update->(expand)->automatic updates
Run the Android SDK Manager and be sure that you have checked and installed Tools>Android SDK Platform-tools.
I believe this package is responsible for the folder in question here.
I just found aapt.exe file in my latest Android-SDK folder (Android_SDK\build-tools\28.0.3)
You can check your latest sdk build-tools folder
or
You can search on total Android SDK folder by file name
I was able to delete my version (28.0.3) and Android Studio reinstalled it. The directory location was
C:\Users\YourUserName\AppData\Local\Android\Sdk\build-tools

Categories

Resources