I am running Windows 7 64-bit and Eclipse also 64-bit with the latest ADT plugin installed and the Android ADK. All installed as instructed on the Android SDK site.
When I try to create a new AVD I get the following messages.
[Date *Time* - SDK Manager] Failed to create the SD card.
[Date *Time* - SDK Manager] Failed to create sdcard in the AVD folder.
I have tried different SD card sizes thinking It may be something to do with storage space allocation but that doesn't seem to be the case as my hard-drive has a lot of space left. Considering I have admin rights on my account it shouldn't be that it can't create a folder either. I really have no idea what is going wrong here and all I have been able to find on this are post on Ubuntu, which haven't been much help.
I found similar issue on my windows. Seems like this happen for 64 bit machines only. To solve this, make sure you have full access permission to all files under the Tools folder in Android SDK directory.
For linux/ubuntu, execute the following
chmod -R 777 ../tools
For windows, goto Android SDK directory..
Right click Tools folder > Properties > Go to tab "Security" > Select "Users" > Edit > Select "full control", save and close it.
It should work after doing this
Go to the following directory in your computer:
C:\Users\.android\avd
Inside this directory you will find all files and directories with the definition and content of your avd machines-
Now do the basic troubleshooting steps:
-check if the avd directory exists and if it contains a file with the name "sdcard.img".
-if the file exists, try to rename it (to check if its locked) and then go to eclipse and ask to create a new sd card.
-if it fails, try to create manualy a file with that name to check premissions.
good luck
Close the emulator which is in open, and re-try. This worked for me.
Related
Good day,I'm a student and I'm trying to create a virtual device in Android Studio, however my home internet is too slow to download a System Image, there is an internet cafe near me that has very fast internet and I plan to download the System Image there by accessing in my browser this link : https://dl.google.com/android/repository/sys-img/google_apis/x86-25_r08.zip
From this message in the window where Android Studio downloads the System Image for Android Nougat
To install:
- Google APIs Intel x86 Atom System Image (system-images;android-25;google_apis;x86)
Preparing "Install Google APIs Intel x86 Atom System Image".
Downloading https://dl.google.com/android/repository/sys-img/google_apis/x86-25_r08.zip
However I do not know how to install it in android studio. How am I able to install it myself on android studio and make an emulator?
Many thanks.
In windows: First locate your android-sdk. By default it's in your C:\Users\Your.name\AppData\Local\
in it's root folder. where you can find: SDK Manager.exe, make a folder name it "system-images", my api 25 image is at system-images\android-25\google_apis\x86_64\Files
Hope you can Figure it out. Comment if you have any problem.
In mac OSX:
~/Library/Android/sdk/system-images/android-[API_VERSION]/[API_TYPE]/x86
Replace [API_VERSION] with Android version you are downloading and the [API_TYPE] can either be google_apis_playstore or google_apis depending on whether the image you are downloading comes with Google Play or not.
On Windows 10:
Download the file from e.g.:
https://dl.google.com/android/repository/sys-img/google_apis/x86-27_r09.zip.
Extract the zipped file.
Copy (OR Cut, not recommended) the contents of the extracted folder e.g.: x86.
Find the android-sdk folder. By default, it should be located at C:\Users\[YOUR USER NAME]\AppData\Local\Android\Sdk.
Look for a folder named system-images. Create system-images if it doesn't exist. Depending on the file you downloaded, create
subfolders within system-images. E.g.:
system-images->android-27->google_apis.
Paste within google_apis.
Restart Android Studio and the system image should be selectable.
Shout if you need any further assistance.
FOR WINDOWS:
To get the exact path of the system-image, try to download from android studio first, after 1% download, stop the download and go to your sdk path.
E.g. C:\Users\TBR\AppData\Local\Android\Sdk, you will see a folder name "system-images"
this folder was created from the part download, open the sub-folder till you get to the last sub-folder.
E.g. C:\Users\TBR\AppData\Local\Android\Sdk\system-images\android-27\google_apis\x86
i.e x86 is last sub folder (delete any content in this last sub-folder)
Download the system images manually, unzipped and copy the whole content, then paste it into your last sub-folder.
Download link for android-27 - https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-27_r03.zip
Go back to android studio and you will see the system-image there now.
For Windows 10:
Download the file from e.g.: https://dl.google.com/android/repository/sys-img/google_apis/x86-27_r09.zip. or Any other System Image
After Completion of Download
Extract the zipped file.
Copy extracted folder e.g.: x86.
Find the android-sdk folder. It is located at C:\Users\{your username}\AppData\Local\Android\Sdk\
Find the folder system-images. Create system-images if it doesn't exist.
Create subfolders within system-images. E.g.: system-images/android-27
Check in link, if it has google_apis or google_apis_playstore:
https://dl.google.com/android/repository/sys-img/google_apis/x86-27_r09.zip.
or
https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-27_r09.zip.
Paste within google_apis if link has google_apis or Paste it in google_apis_playstore folder.
The Complete path of system image file :
C:\Users\{Your UserName}\AppData\Local\Android\Sdk\system-images\android-30\google_apis\x86
or
C:\Users\{Your UserName}\AppData\Local\Android\Sdk\system-images\android-30\google_apis_playstore\x86
Restart Android Studio and the system image should be selectable.
============= Good Luck ❤❤❤ =============
I have faced the same issue when manually installing an android-wear image. For android-wear images the directory structure looks like this.
<your_android_sdk_location>/system-images/android-<version>/android-wear/<extract_downloaded_android-wear_image_here>
example: For this wear image https://dl.google.com/android/repository/sys-img/android-wear/x86-28_r03.zip
<your_android_sdk_location>/system-images/android-28/android-wear/x86
Don't forget to restart the Android Studio!
Actually, if you extract downloaded zip archive, system will never find it.
You have to click in 'Download' tag, then in folder
%ANDROIDSDK%/system-images/android-25/
^^^ version of SDK you use
if google-api then additional folder 'google_apis' will be created .install file with the path, where archive is located.
Usually it is
C:\Users[YOUR USER NAME]\AppData\Local\Temp\PackageOperation01
Put there your zip archive and go to Download link again.
After that, it will not start download, but will start to check and unzip operation.
This resolves offline installation issue.
find the logfile for the android device manager (on my machine it was here: C:\Users(user name)\AppData\Local\Xamarin\Logs\16.0). At the end of the logfile (named like 2021-07-21_16-03-19.18380.devicemanager.log), you'll see it reference a path it's trying to download from and to. Here's what my log message looked like:
[21-07-21 21:03:29.66] [ProgressMonitor] Step "Downloading Google Play Intel x86 Atom System Image v9" did begin for AVD: pixel_2_pie_9_0_-_api_28, totalWork: 918028186
[21-07-21 21:03:29.67] Downloaded file '<USER_HOME>\AppData\Local\Temp\xamarin-android-sdk\x86-28_r09.zip' not found for Android SDK archive 'https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-28_r09.zip'
[21-07-21 21:06:08.50] [ProgressMonitor] downloading did report error with exception: System.TimeoutException: The operation has timed out. AVD Name: pixel_2_pie_9_0_-_api_28
So I went to the https://dl.google.com/android/repository/sys-img/google_apis_playstore/x86-28_r09.zip link and manually downoaded the file and copied it to <USER_HOME>\AppData\Local\Temp\xamarin-android-sdk\x86-28_r09.zip and clicked retry from the failed attempt inside the android device manager, and voila, it worked after 2 days of messing around with it.
For me the problem was that currently Android Studio doesn't list older system images (older than 29) in the "Create Device" wizard, and that even if the relevant system images have been downloaded already.
The workaround I found was to download system images and create emulator devices from the command line. This works even if you don't have the Android Studio - you just need the Android SDK installed.
To download a system image, go into the directory where the Android SDK is installed (by default this is at ~/Android/SDK on Linux), then in your terminal type: ./cmdline-tools/latest/bin/sdkmanager --list - this will list all the available system images, even very old ones (I see the oldest SDK is 10). They should have the path (the text in the first column) labeled with this format: system-images;android-<sdk-version>;<type>;<architecture> (there are also other stuff aside from system images, lets ignore these for now).
To download the system image you want, type ./cmdline-tools/latest/bin/sdkmanager --install "<path>" where "<path>" would be the first column from the available package list from the step above.
Then to create an emulator virtual device for this image, use the command line as well: type ./cmdline-tools/latest/bin/avdmanager create avd -d <device-type> -k '<system-image-path> -n '<device-name>', where:
"<device-type>" would be the name of the device you want to emulate, for example "pixel_4a" to emulate a Pixel 4a - use avdmanager list device to get the list of devices.
"<system-image-path>" would be the same path you used to download the system image, for example system-images;android-23;google_apis;x86_64.
"<device-name>" would be whatever name you want to be shown in Android Studio's "Device Manager" view.
For example: ./cmdline-tools/latest/bin/avdmanager create avd -d pixel_4a -k 'system-images;android-23;google_apis;x86_64' -n 'Pixel_4a_API_23'
If you had Android Studio running while doing all of that, you'd need to stop and restart it. If you want to copy the created files to another machine, you'd need to copy your entire Android SDK installation directory (or possibly only the "system-images" folder inside the SDK installation directory) and also the content of the Android SDK AVD configuration directory - if you created any AVDs - this would be ~/.android/avd under Linux.
Go to the AVD Manager in Android Studio (it is in the toolbar and looks like a tablet with an Android on it), then click on "Create Virtual Device" once a window called "Android Virtual Device Manager" pops up. Next, choose the device you want to pick, and then click "Next". You will then be able to download a system image.
I'm following the instructions at http://mobile.tutsplus.com/tutorials/android/getting-started-with-kindle-fire-development/ describing how to setup a dev. environment for the Kindle Fire. I'm stuck at the step "[Windows] Step 2: Using the Google USB Driver" however. The Android SDK app. indicates the Google USB driver is installed, but I don't have the file android_winusb.inf. How can I resolve this?
For me, the android_winusb.inf file was not in the %USERPROFILE%.android directory. It was in a subfolder of the Android SDK directory, specifically:
C:\android\extras\google\usb_driver\android_winusb.inf
and
C:\android\usb_driver\android_winusb.inf
with my Android SDK installed in C:\android.
I'm not sure why there are two, but it appeared the one in the extras folder was newer, looking at DriverVer inside the file.
I know this is an old thread but, I recently had to find this and found my android_winusb.inf file at: %USERPROFILE%\AppData\Local\Android\Sdk\extras\google\usb_driver
Make sure you can see hidden files/folders:
http://www.howtogeek.com/howto/windows-vista/show-hidden-files-and-folders-in-windows-vista/
The ini file you're looking for is in the .android folder in you home directory. To find your home directory use this in the command line:
echo %USERPROFILE%
Navigate to the location it displays and modify the file.
Go to SDK manager
Select SDK Platform Tools
Scroll down, select Google USB driver
Install
Hey Presto!
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
I am working on Android application which needs to play audio present in cal folder i.e sfdk folder. My doubt is wehere can I find SDK folder in File/Explorer option of
ddms.I find data and system folders in File/Explorer, but didnot find SDK folder.Can I be helped to sove this issue .
Thanks N Regards
Did you mean the Android APIs which are available with the sdk?
It is present in the project folder in Eclipse.(Couldnt post picture because of low reputation :-))
If you want to see the system files inside the emulator, go the command prompt and type
host $>adb shell
#>ls
You can see all the system files.
If you want to see the Android sdk, you should download the source code from the Android site.http://source.android.com/source/download.html
Thanks,
Sen
DDMS displays the content of your phone's internal disk space. There should be a folder named /sdcard that represents the sdcard, if you have one mounted on your phone or emulator.
If by "SDK folder" you mean the SDK that you installed on your PC, it's not going to be shown my DDMS. Feel free to clarify your question.
Running XP sp3 when i click SDK Setup.exe command line promt comes up and goes away fast and nothing else happens is there a fix for this ?
try making empty folders named 'platforms' and 'add-ons' without quotations in your android-sdk-windows folder and then running sdk setup.exe
worked for me just now
I just download the .zip file, opened the file and double-clicked the SDK Setup.exe and it loaded fine. A setup window popped up in the background, that does not happen to you at all?
EDIT:
Take a look into Installing the Android SDK and look over the System Requirements and make sure you have both JDK 5 or JDK 6 (which you do) and JRE 6
Run it from the System command prompt not the User command prompt, not sure if thats really what its called, but there are 2 separate command prompts. You want the one that has higher privelages.
UPDATE
Is your computer able to connect to https? That was an issue that was holding me back from installing android at first, however it is appropriate for the command prompt to disappear immediately.
Ok here is my own fix and recommending it to others save SDK kit unzip to C:\ then 1.) download the latest java currently java 6.0.18 from --> java web site save and run (I used c:\ for file locations to save and run from) 2.) download the latest "Eclipse IDE for Java Developers" from --> eclipse org downloads site 3.) go to my computer c:\ --> C:\Program Files\Java copy the jre6 folder or jre...what ever version you may have paste the folder into the folder name C:\eclipse rename the folder from jre6 to just "jre" this will allow eclipse to run, in eclipse click on the help tab click install new software add location http://dl-ssl.google.com/android/eclipse/ ok do restart go back into eclipse go to window tab preferences, expand android, browse c:\android-sdk-windows ok, window tab Android SDK and AVD manager, Available packages, select all, update, in same area go to virtual devices, new, name: Hi target: android 2.1, create AVD, Select and start, now you will have android 2.1 emulator working