I'm used to find all SDK resources (such as images, that is what I want) in folder android-sdk>platforms>android-[VERSION_NUMBER]>data>res but I can't find the new android-14 folder.
I've updated all 4.0 tools (as you can see in the image) and the API 14 emulator works
I tried downloading the SDK folder from Android Developer, but it doesn't contain images. How can I access Android 4.0 resources?
Have you tried searching for a folder with the name android-14? I'm thinking the SDK Updater might have placed it elsewhere - all though I don't know why it would have done it.
Since you have the tools installed - the folder should be there. (I have one at least).
Related
I've downloaded x86-25_r07.zipin browser instead of downloading it in Android Studio.
How to install it?
Thanks,
If I am not wrong, you need to extract the zip file in its respective system-images folder.
The path in Windows OS will be: {username}\AppData\Local\Android\sdk\system-images\android-25\google_apis\x86_64
Where android-25 is the version, which in your case is 25.
The path in Linux & Mac will be respective to SDK's system-images folder path as SDK images does not change & are independent of OS.
If any similar system image exists on the same path, just create a new folder for your downloaded zip and extract it into that new folder. If no folder exists, then create one.
Inside android-25 folder, if your downloaded image is Google APIs then the folder name should be google_apis, if the downloaded image is Google APIs with Play Store then folder name must be google_apis_playstore
Note: This answer is based on my knowledge & previous experience in Windows, I do not hold any responsibility if you mess anything in your SDK. I strongly recommend you to first have a closer look at all the directories and folders under system-images folder to have a better understanding and easier solution.
Android Studio is taking up more than 16GB of space.
I would like to delete some files.
I use my cell phone to compile the code.
So I would like to delete all files that are related to AVD.
System-Images take up nearly 12GB.
I believe system-images are used for rendering AVDs.
So can I just delete them?
Is there a particular method by which they have to be deleted?
I am not programming for either Android Wear or TV.
I also don't have an Intel processor (I have AMD).
So what files & folders can I delete?
Obviously delete anything that says Intel since you can't run it with AMD. You only need one system image and SDK for each API you need to test against. Delete everything else. ... Or, just delete everything. Start from scratch. Try to run things, then install the bare minimum of what you think you need as the errors occur.
Also, your phone runs the code, not compiles... Anyways, if that is the case, delete all system images. Leave the APIs that you need. If you are not developing offline, then delete the Documentation & Sources as well.
Use the SDK Manager for all this
I like to keep in minimal. Last time I checked, it was around 600 MB
For each API you want to build for, you should keep the SDK platform, Google APIs and Sources for Android SDK. Samples are nice but not necessary.
I wouldn't touch the first tools folder. Everything else you can uncheck and delete.
I have all those installed for API 17, 19, 21, 23 and my SDK folder comes to ~6.5 gbs
You probably shouldnt be manually deleting files from the /sdk folder (since you're talking about system images and intel).
Use the SDK Manager to uninstall the components you don't need. It should have the system images and other components you mentioned listed as installed.
I am trying to migrate from ADT to Xamrin.
I have installed Xamarin on Windows.
I have installed sdk. But when I try to download tools and sdks from SDK manager I get and error like this:
But since I already had downloaded everything when I was using ADT, I copied the sdk folder to the new computer I have Xamarin on.
But Xamarin does not seem to be able to locate sdk.
I have installed Android sdk here:
When I go to tools->options and I enter the address of the sdk folder, the red cross does not go away. I tried entering all subfolders in sdk folder.
What am I supposed to do?
I've been dealing with this the whole day. No usefull link or guide since Xamarin is not stoll widely used. Any help is appreciated.
First of all, it's a good idea to remove all spaces from pathes.
I use C:\Android as my base path, c:\Android\SDK, c:\Android\NDK etc. I had some serious problems with Xamarin and spaces / accented characters in path in previous versions.
Furthermore there's an Access Denied on your path in the first screenshot, add read/write rights recursively for the folder c:\program files (x86)\Android (Everyone - Full control if anything fails)
Background: I have been using the Terminal-IDE program to learn about doing Android development (I like vim, for starters...).
https://play.google.com/store/apps/details?id=com.spartacusrex.spartacuside
As shipped, it supports SDK level 9. I want to support level 14 (Android 4.0+), so that I can use GridLayout instead of the more complex TableLayout.
I emailed the author, who responded in less than a day (kudos!), but, when I look for a replacement android.jar under /system on my tablet (Nexus 7 model 2), that particular jar does not exist, only many other jars with longer names that are just wrappers around dex files.
Anybody ran into this problem and solved it?
Upon further emails with the author of the environment, I found an easy solution:
Go to the system/classes directory of the T-IDE install
Rename the existing jar (e.g. - android.jar.t-ide)
Copy the android.jar from the SDK (or sdk directory within Android Studio) with an alternate name (e.g. - android.jar.studio.sdk)
Make a symbolic link from the updated SDK jar to android.jar
Now I can use GridLayout from Android 4.0 - compiles (on the tablet) and runs just fine. I did not need to update any other environment variables or configurations, as I replaced the original android.jar with a sym-link to the updated jar (and an "ls -l" will show which one is being used as "android.jar").
Note: if you get the updated android.jar from Android Studio, be sure to get the one in the sdk directory, not the one in the "plugins" directory, which won't work.
I have re installed android sdk (platform 2.3.3). Now I have different set of folders on my package explorer.
For example there are folders called drawable-xhdpi , Android dependencies which weren't there before. Also by default the main.xml is now generating on RelativeLayout instead LinearLayout.
How to avoid that?
Layout-land folder is missing as well.
How can I get the previous folder set?
I guess you were using an older version of android SDK. When you reinstalled the SDK it got updated. Folders like drawable-xhdpi are automatically added to the package explorer in the newer version of Android SDK.
To avoid this, degrade your SDK version or delete unwanted folders manually. You can find the older releases from this link.