offline installation of an Android PLATFORM on Windows? - android

Okay so I have followed instructions on earlier questions in order to offline install the Android SDK, platform-tools and tools, and now I am trying to install an Android platform. (When I run "android list targets", it returns that there are no available targets, and the platforms folder is empty).
What types of files are actually IN the platforms directory? I have files from the repository like "system.img" and "kernel-qemu", but I don't know where to put them.
Could someone let me know what their C:\Android\platforms folder structure actually looks like for a working installation?
(NB: for background, I am able to get to the URL "dl-ssl.google.com" through my browser and even the Eclipse internal browser, but for some reason it can't be accessed from the SDK manager, so I can't download any components or platforms!!)

For what purpose you want to install android platform? If you want to develop apps, you need a lot of stuff from platform folder except "system.img" and "kernel-qemu": android.jar, ant tasks, tools and a lot of resources. If you want just to run emulator, you probably need not all of that...
This is contents of my platform folder: http://ccfit.nsu.ru/~izhovkin/list.txt

Related

Sdk location in AOSP

Note - I am relatively new to Android and AOSP...
Where can I find the Android SDK in the AOSP? As we know, we build apk files in the android studio using the separately installed SDK. But for some reason, I wish to use the SDK in the AOSP if it is available. I see the source code of SDK in the AOSP; do we need to build it?
Why/How I have arrived at the above question:
I had created an .apk in the AOSP which had JNI files and dependency on some existing Broadcom libs (so). It is a system app. What I noticed is the .apk package does not contain the JNI libs but rather is copied to /system/lib folder separately. Hence I had a doubt how the .apk upgrade will work? Is it possible?
I assumed the .apk upgrade won't work that way and the .apk should be packaged including the JNI libs. Hence I planned to build the .apk in the studio and use the .apk as prebuilt and just sign it in the AOSP (we have the keys). Then I also wanted to allow the developers to build the .apk in AOSP itself by running the Gradle in the command line. I did so by adding the command to the Android.mk. But the point here is, it is still using the SDK installed in /home//Android/Sdk. But there may be build machines which may not have the SDK installed. So I am putting this question - Do we (where?) have the SDK in AOSP? Can I use that instead?
I tried to explain the problem.. in case it's not clear please let me know... Will try to give more details...
OTA update will work. Update with Package Manager - won't. This is normal for system apps with native libraries.
In AOSP applications are built differently depending on their location in build tree. Apps placed in ~/packages/apps and ~/device/some_vendor are system apps and they are handled differently by the system. One of differences is that during build process they are stripped of their native libraries and those libraries are simply copied to the /system/ partition.
Including pre-built apk is a good solution.
Yes you can build sdk yourself from sources. Yes, it's there. But I don't understand why you need that. Are there any changes to the API?
There are other options. For example, you can mangle your build scripts. Say, you can add a global FLAG that would disable lib stripping for system apps.

Regarding Android NDK Removal

I have so many android ndks and sdks installed in my laptop and takes up space.
Because I use Android Studio I think I shouldn't uninstall the sdk but there are so many ndks.
Also, that I use Xamarin, I need one package of ndks so I thought which one should I uninstall.
And I can't see them in Programs and Features.
I'm using Windows, by the way. Any ideas?
I can't see them in Programs and Features.
The NDKs aren't "installed" like typical Windows programs. They are just extracted zip files. To remove them you just delete them from your file system.
To remove any downloaded with Android Studio, they can be removed via the SDK Manager in Android Studio. For things installed with other tools, they might have a similar solution.
You can have one installation of Android SDK/NDK and delete the rest. You can manually set the SDK and Path in the Visual Studio and Android Studio to use

Sharing project folder in Android Studio

How can I share a project/working directory between two Android Studio installation in two different computers? The shared repository is a file sharing cloud service like Dropbox.com or box.net.
The reason I want to do this is that I have a desktop and a laptop each with Android Studio. I want to be able to seamlessly do development work between the two systems without having to checkin or checkout code in a code repository.
I don't plan to run the two Android Studio concurrently. This is just for me - one user.
I used to be able to do this with Eclipse ADT but with Android Studio I am getting multiple errors - missing libraries, etc.
Any suggestions on this use case is also welcome.
Thanks in advance,
Ray
It is actually working, to begin with. It was an oversight on my part. I needed to download the latest version of Android Studio (including the updates). Since applying updates I can open the project in another device by referencing the project working folder in the shared folder (in this case Box.net). I just get an initial prompt on the SDK location, that it is unable to find the original location. But it did offer to use the SDK location on the current computer.
When using the current device's SDK folder it will say that it will "modify the project's local.properties file." I click OK on this and it's all good.
This is what I wanted to do. But I'm looking at GitHub now. Thanks.

Are files in Android SDK Platforms folder on Windows and Linux the Same

Are the files in Android SDK platforms folder on Windows the same as the one in Linux? I just want be sure than to download files I have already on my computer.
It´ll sure not be the same. Check this answer they explain how to check it
https://stackoverflow.com/a/16582792/3617531
EDIT
As you were asking for the files, just check this url. You will see the sizes are not the same between linux and windows, then, I recommend you to download them again.. and make it a fresh install...
https://developer.android.com/sdk/older_releases.html

Migrating from ADT to Xamarin, Xamarin cannot locate my copied Android sdk

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)

Categories

Resources