I've installed eclipse, ADT plugin for it and I get an error "Location of the Android SDK has not been setup in the preferences". I go to preferences but I can't find the root directory of android SDK. Where is it?
edit:
I've set the location to the preferences. Now I get the error 'Android SDK Content Loader' has encountered a problem parseSdkContent failed
Have you downloaded the SDK starter package from here? If not download to a directory of your choice and then point Eclipse to that directory.
Related
so I tried to download NDK from StandAlone SDK manager and it didn't have the option! then I went to google developers and read some guides and understood how to get it via android Studio
there was an NDK option in SDK manager -> SDK tools tab , I checked it and after applying it started downloading it, but for some reason after download, it fails to install it (tried 2 time it fails at end of unzipping process at like 100% :| ) ***Note: I have enough space available, 4gb on windows drive, 20gb on SDK drive
***Note2: I deleted the NDK bundle folder and its contents created by the failed install in my SDK folder
so I went to NDK Download
and downloaded the package from there , but I can't get it to work, gradle says "Error:NDK not configured.
Download it with SDK manager.)"
I tried adding the NDKfolder to PATH variable or adding NDK_HOME variable but still the same error
Update 1 : I added ANDROID_NDK_HOME variable now it says : Error:A problem occurred configuring project ':TMessagesProj'.
I had this issue of
Error:NDK not configured. Download it with SDK manager.)
But I solved my problem with this link: Add C and C++ to your Project
you can skip to the heading Download the NDK and Build Tools, but read everything for knowledge.
This error might be, your Android Studio is not able to find the NDK location.
So, try doing this: right click on your project in Android Studio,select "Open Module Settings", select SDK location tab, and provide SDK and NDK locations.
Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Android resource directory C:\Users\Srinivasarao\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3\embedded\./ doesn't exist. Sample.Droid
Please install package: 'Xamarin.Android.Support.Design' available in SDK installer. Java library file C:\Users\Srinivasarao\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3\embedded\classes.jar doesn't exist. Sample.Droid
Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Android resource directory C:\Users\Srinivasarao\AppData\Local\Xamarin\Android.Support.v7.AppCompat\23.0.1.3\embedded\./ doesn't exist. Sample.Droid
Please install package: 'Xamarin.Android.Support.v7.MediaRouter' available in SDK installer. Java library file C:\Users\Srinivasarao\AppData\Local\Xamarin\Android.Support.v7.MediaRouter\23.0.1.3\embedded\libs/internal_impl-23.0.1.jar doesn't exist. Sample.Droid
Reason: C:\Users\Srinivasarao\AppData\Local\Xamarin\zips\96659D653BDE0FAEDB818170891F2BB0.zip is not a valid zip file Sample.Droid
Hi Friends I am trying to Execute Sample Xamarin Form App In VisualStudio But i am Getting Above errors. Please Help me. But when i trying to install this version package it is instatting empty folder in this location 'C:\Users\Srinivasarao\AppData\Local\Xamarin\Android.Support.Design\23.0.1.3\'
Delete all from the path: C:\Users\USERNAME\AppData\Local\Xamarin Folders and Zip files.
And then rebuild your project.
Launch Android SDK Manager from Visual Studio
To launch the Android SDK on Windows, navigate to the Tools > Android menu and select Open Android SDK Manager.
The SDK Manager window will open.
You can use this Android SDK manager to select tools, documentation, and the SDK that you wish to download or update.
Ref: https://developer.xamarin.com/recipes/cross-platform/ide/launch_sdk_manager/
After ensuring everything is update in Android SDK:
1) Delete the "21.0.3" folder within in your AppData dir (reference your error)
2) Rebuild your application.
Download android_m2repository_r25.zip related to API Level 21.0.3 and putit on this path C:\Users\USERNAME\AppData\Local\Xamarin Folders and Zip and extract it.
i hope it will work.
1: Download "https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip" into your (mediafire.com or other upload center websites)
2: Download "android_m2repository_r22.zip" from your mediafire panel into your computer
3: Rebuild your solution to get list of error codes
4: Find error(Error Reason: "C:\Users\Vahid\AppData\Local\Xamarin\zips\96659D653BDE0FAEDB818170891F2BB0.zip" is not a valid zip file)
5: Copy your android_m2repository_r22.zip into "C:\Users\Vahid\AppData\Local\Xamarin\zips\" directory
6: Rename "android_m2repository_r22.zip" to "96659D653BDE0FAEDB818170891F2BB0.zip"
7: Rebuild your solution
8: Enjoy xamarin form.
List of md5 name for your download file are available in "https://developer.xamarin.com/guides/android/troubleshooting/resolving-library-installation-errors/#Manually_Downloading_m2repository"
check https://stackoverflow.com/a/38367810/2920206
When I try to open up the SDK Manager in eclipse it says opening shortly, but never opens. I've tried to open the exe file but it displays an error message saying:
Failed to execute tools\android:bat the system cannot find the file specified
My path environment variable leads it to the tools folder.
This is the path:
C:\Users\Shan\Documents\Computer Science - YEAR 2\Android App Development\adt-bundle-windows-x86-20130917\sdk\tools
In my case the Tools directory just disappear.
..\sdk\tools
To solve it:
1) Just go to SDK zip -> adt-bundle-windows-x86_64-20131030.zip
2) Unzip the Tools Directory only.
3) copy it under ../sdk/
I had a similar problem today. Press the Windows button and Search for android.bat(in the search programs and files text field)
Then copy the file to your android SDK folder (C:\Users\Shan\Documents\Computer Science - YEAR 2\Android App Development\adt-bundle-windows-x86-20130917\sdk\tools\).
After that don't run SDK manager but run the android.bat file.
Hope this helps
-Zaniar
I had to move the AVD manager from /sdk/tools/lib to the root folder /sdk
Copy the AVD Manager.exe and SDK Manager.exe from
SDK_ROOT_FOLDER/tools/lib/
into
SDK_ROOT_FOLDER
I've been working with this problem for three days and finally was able to run SDK Manager by
==> Running the android.bat file as administrator
Note: I did not have to make any changes to the .bat file (such as setting the java_exe path) in order for the manager to run.
I saw this as a comment on the top answer but can't upvote yet, so confirming it here!
I cancelled an update to Android Tools and it seems there's a bug with unzipping the old (or new?) version back into {android_sdk}/tools. The zip is located in {android_sdk}/temp. Just unzip it into the right location and it should work again.
If the accepted answer doesn't help anyone, it also might be a permission issue (if the SDK is installed in Program Files (x86), for example, so try running android.bat as Administrator,
I had the same issue when updating the Android SDK Tools and SDK Platform-tools from the SDK Manager. I had to replace the tools folder with one located in a zip folder inside the temp folder.
In My case, While I installed visual studio 2015, The SDK files were missed and I am getting an error window shown below.
So I manually downloaded the tools from the following URL.
tools_r24.0.2-windows
Then extract the zip file and copy the tools folder in the following location.
C:\Program Files (x86)\Android\android-sdk
It worked for me.
I think current Android SDK only works with JDK x86 version. I search so much but when installed JDK x86 version Android SDK manager worked without problem.
Copy your android.bat file to C:\adt-bundle-windows-x86_64-20140702\sdk\tools folder or copy all files to C:\.
If you are seeing this error, it may be an issue with your COMSPEC environment variable.
Please see https://stackoverflow.com/a/27284746/3866013 for more details.
I had the same problem. Caused it myself because while runing Android SDK Manager i hit UNINSTALL SDK Tools.
I fixed the issue by running the installation of the Android SDK again. The installation folder had to be the same as previously. After the installation, everything was back again as it was.
This is how I solved the problem on Windows 7:
I was going to update the SDK using Android SDK Manager but android.bat was not found because previously it uninstall the older one and then installs new. In my case my SDK Update was interrupted i.e. in other words, could not install after the SDK Manager uninstalled the tools, so my machine was not able to find android.bat. What I did was just downloaded the standalone SDK tools to the same folder where my SDK were from :
http://developer.android.com/sdk/index.html#Other
https://developer.android.com/sdk/index.html#Other
Here are two options for downloading the Android SDK for Windows users. One in recommended option and the other is .zip file. Zip file worked well.
Another option may also work. Try searching android.bat with windows search engine. If you find the one, copy it and paste in SDK tools folder.
open Sdk Manager.exe, then i deleted first Android Sdk tools, so, I also appeared such a mistake, then I downloaded installer_r24.3.2-windows.exe, installing, copy C:\Users\Super Man\AppData\Local\Android\android-sdk\tools folder to my Sdk path,run My Sdk Path\android.bat ,ok!!
I did the following :
I created a folder SDK right below my C-drive
I unzipped tools_r25.2.3-windows.zip to C:\SDK
I moved SDK Manager.exe from C:\SDK\tools\lib to C:\SDK
I first ran SDK Manager.exe in 'normal mode',but this gave me the error, but when I ran SDK Manager.exe as ADMINISTRATOR it didn't return the error.
The reg command exists but for unknown reason my path variable was corrupted during some installation.
So some basic element were missing:
C:\WINDOWS\system32;
C:\WINDOWS;
C:\WINDOWS\System32\Wbem
I installed the Android Studio When I click on the SDK Manager or AVD Manager button in toolbar it cannot opens any thing . And when I open AVD or SDK Manager from the folder C:\Program Files\Android\android-studio\sdk\tools\lib it gives the error that " Failed to execute tools/android.bat . the system cannot find the file specified".
How can I solve this problem?
SDK Manager not launching from Android Studio because you have to start the AndroidStudio as Run as administrator privileges.
Failed to execute tools/android.bat
Run the android.bat which is in tools directory of the sdk. Ex [C:\Program Files (x86)\Android\android-studio\sdk\tools]
It will start the SDK Manager.
This isn't sufficient because SDK Manager fails to update files because android.bat has control of the folder that needs to be update. Basically it doesn't work correctly on Win8 because the files need to be in an Program Data folder instead of the Program Files folder.
This is what i did to solve the problem;
went to https://dl.google.com/android/android-sdk_r24.0.2-windows.zip and downloaded that sdk tools
Extracted the file in one of the location of my choice
Copied the SDK Manager.exe from the extracted file
Went to the location where the original SDK Manager.exe was and replaced it with the one downloaded.
Went back to android studio and started SDK Manager, boom! SDK Manager launched perfectly
NOTE: I only replaced the SDK Manager.exe only. Hope this helps someone.
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