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

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)

Related

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

Android Studio 2.1

Good Day,
I had to format my drive due to some errors, but before I did, I have copied all the zip files form the temp directory that contained the android sdk's now instead of downloading all of them again how do I install the SDK's and how do i determine where which one goes?
I have tried to set up a webserver on my localhost with all the zip files and pointed android studio to use that as a update location but for some reason it is not reading the data from there.
Please Help.
Android SDK you need to provide the location of Android base SDK folder and it shall automatically pick up Platforms folders under which all your Android version should be listed. You do not need to reinstall whole stuff.
Also make sure ANDROID_HOME and JAVA_HOME is properly set inside Environment variables and PATH

IntelliJ 12 Android Setup? Nothing works

IntelliJ 12 does not generate the needed files to start Android Development.
I've setup both JDK and SDK and intelliJ seems to see the correct paths.
I am coming from Eclipse which generates everything you need to start pretty much out of the box.
I've tried...
Double triple checking file paths.
Searching...alot of searching.
Making new files from scratch.
Making hello world program, still doesn't generate needed res folder and AndroidManifest.xml file.
Changing file path directly to AndroidManifest.xml's containing folder.
The one thing Eclipse provides that is missing from IntelliJ is and Android SDK install wizard. In other words, you would have to preinstall hte Android SDK from Google prior to starting with IntelliJ. Other than that IntelliJ actually provides more out of the box than Eclipse. (Especially considering you have to manually install the Android plugin before you get the Android SDK install wizard.) Go to the Google Android developer site to find the Android SDK and once you've done that you should be able to get up and running pretty quickly with IntelliJ. Start a new project and select Android. This should walk you through a new project wizard which will setup the necessary res and gen folders for you.
I've put together a screencast on Android development using an Eclipse stub project here: http://bit.ly/Zu6q8i

Android: Is it possible to cut/paste android SDK and use it?

I am using eclipse as IDE for android programming. I have update android SDK to API 9. these are installed on my laptop.
Now, I want to transfer all of these to my PC. On my PC, I didn't have eclipse and SDK.
My question is, may I copy folders of eclipse and SDK from laptop and paste it on my PC? can I use it and create new project after this?
Thanks
Try and see is the best answer to this.
My suggestions is to launch eclipse on your desktop and get ADT.
Otherwise I think you have to be careful where your Android SDK is. if you put in Eclipse then it should work.
(In my case I needed the SDK and NDK to be at the root of C:)
bottom line there is not better way than a clean installation
Yes, you can just copy the whole project (your app) folders over to your PC. In Eclipse, use the File/Import… command, then select General/Existing Projects into Workspace to add the copied project/s to your Eclipse workspace.
As for the Android SDK folder, I wouldn't transfer that one over, and just run the SDK installer for Windows again on the second PC to be sure.
Yes Very much. Just copy and paste. This should work in most cases. (Except if you try to transfer a 64bit eclipse version to a 32bit machine. If this happens just download the eclipse 32 bit version and point your workspace and android SDK to the copied one).
Copy paste has and advantage if you are planning to generate debug key (need this if you are using Location Information using Google API). If you copy paste, you dont have to keep generating a new key per machine.
Yes, you can copy all the things as far as you keep respecting the path changes. Keep track of them and change paths in Eclipse. You must have Java although.

Setting Up Eclipse for Android SDK?

I'm having trouble setting up the Android SDK. I've set up Eclipse before but it didn't work, so I uninstalled it, but I'm trying again.
Does Eclipse need to be extracted to a particular folder for it to work? Where should I extract to?
Edit:
I'm using Eclipse 3.5 on Win7 Ultimate x64
Eclipse should be one of the most straightforward installs you have ever done. Make sure you have a Java SDK installed prior to extracting Eclipse. Otherwise it should work out of the box. Be sure not to move the eclipse executable out of the directory that you extract it to (make a shortcut to move instead).
The Android SDK should also be largely painless. Use the tool provided with the SDK download to setup the versions you want. The documentation is pretty good for this. (see Brian's link)
It can be much trickier to get the drivers for specific handsets working though, so you have that to look forward to down the road. They will come from the individual manufacturers developer websites.
Also is this for Win, Linux, or Mac? I will link you a walk through for the one you need.
Video tutorial for installing Android SDK on Win7 - http://www.youtube.com/watch?v=YeWH6Bj1DYw&feature=related
Installing Eclipse on Win 7 64bit:
http://lingpipe-blog.com/2009/03/05/eclipse-ide-for-64-bit-windows-and-64-bit-java/
How can I install eclipse on Windows 7 64-bit?
JVM - http://www.eclipse.org/downloads/moreinfo/jre.php
No, Eclipse can be extracted anywhere. Make sure you follow the steps detailed in the guide "Installing the SDK".
Ignore the last link to the JRE provided in Andrew's answer, you need the Sun JDK (5 or 6) instead of just the JRE (The Java Development Kit can contain multiple Java Runtime Environments). The official documentation Android provides makes this distinction quite clear. You need the JDK. --> http://developer.android.com/sdk/installing.html#Preparing
Also, the ADT plugin for eclipse sometimes doesn't update correctly. In that case, try to manually remove the 's' from the 'https://' and if that doesn't work, click on one of the tabs of the dialog and look for the checkbox which forces the use of secure mode, and then of course, make sure there is an 's' in the 'https://'.
Also make sure you've updated your system environment variable called 'path' to make sure the tools inside the tools/ folder from your android sdk folder are accessible from anywhere your command line/Eclipse might decide to call them from.

Categories

Resources