Eclipse Indigo integration with Android SDK to connect to Visual SVN


Eclipse Indigo integration with Android SDK to connect to Visual SVN


Download eclipse-java-indigo-SR2-win32-x86_64.zip, unzip and copy in C drive. Install Java Development kit version 6 update higher than 14 for a 64 bit system. Open Eclipse, if it does copy the shortcut to desktop.

You should have already downloaded the Android SDK Tools. (If you downloaded the ADT Bundle, you should instead read Setting Up the ADT Bundle.)

The SDK Tools package is not the complete SDK environment. It includes only the core SDK tools, which you can use to download the rest of the SDK packages (such as the latest system image).

Getting started on Windows
Your download package is an executable file that starts an installer. The installer checks your machine for required tools, such as the proper Java SE Development Kit (JDK) and installs it if necessary. The installer then saves the Android SDK Tools into a default location (or you can specify the location).

Double-click the executable (installer_r21.1-windows.exe file) to start the install.
Make a note of the name and location in which it saves the SDK on your system—you will need to refer to the SDK directory later, when setting up the ADT plugin and when using the SDK tools from the command line.


Once the installation completes, the installer offers to start the Android SDK Manager. If you'll be using Eclipse, do not start the Android SDK Manager, and instead move on to Installing the Eclipse Plugin.

If you're using a different IDE, start the SDK Manager and read Adding Platforms and Packages.

Installing the Eclipse Plugin
Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT). This plugin provides a powerful, integrated environment in which to develop Android apps. It extends the capabilities of Eclipse to let you quickly set up new Android projects, build an app UI, debug your app, and export signed (or unsigned) app packages (APKs) for distribution.

If you need to install Eclipse, you can download it from eclipse.org/mobile.

Note: If you prefer to work in a different IDE, you do not need to install Eclipse or ADT. Instead, you can directly use the SDK tools to build and debug your application.

Download the ADT PluginStart Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.

In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
Click OK.
 

If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).

In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.

Read and accept the license agreements, then click Finish.

If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

When the installation completes, restart Eclipse.

Configure the ADT Plugin
Once Eclipse restarts, you must specify the location of your Android SDK directory:
In the "Welcome to Android Development" window that appears, select Use existing SDKs.
Browse and select the location of the Android SDK directory you recently downloaded and unpacked.


Click Next.

Your Eclipse IDE is now set up to develop Android apps, but you need to add the latest SDK platform tools and an Android platform to your environment. To get these packages for your SDK, continue to Adding Platforms and Packages.

Troubleshooting Installation
 If you are having trouble downloading the ADT plugin after following the steps above, here are some suggestions:

If Eclipse can not find the remote update site containing the ADT plugin, try changing the remote site URL to use http, rather than https. That is, set the Location for the remote site to: http://dl-ssl.google.com/android/eclipse/

If you are behind a firewall (such as a corporate firewall), make sure that you have properly configured your proxy settings in Eclipse. In Eclipse, you can configure proxy information from the main Eclipse menu in Window (on Mac OS X, Eclipse) > Preferences > General > Network Connections.

 If you are still unable to use Eclipse to download the ADT plugin as a remote update site, you can download the ADT zip file to your local machine and manually install it:

Download the ADT Plugin zip file (do not unpack it): Package Size MD5 Checksum
ADT-21.1.0.zip  13564671 bytes f1ae183891229784bb9c33bcc9c5ef1e


Start Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In the Add Repository dialog, click Archive.
Select the downloaded ADT-21.1.0.zip file and click OK.
Enter "ADT Plugin" for the name and click OK.


In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
In the next window, you'll see a list of the tools to be downloaded. Click Next.
Read and accept the license agreements, then click Finish.


If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

When the installation completes, restart Eclipse.

To update your plugin once you've installed using the zip file, you will have to follow these steps again instead of the default update instructions.

Other install errors
Note that there are features of ADT that require some optional Eclipse packages (for example, WST). If you encounter an error when installing ADT, your Eclipse installion might not include these packages. For information about how to quickly add the necessary packages to your Eclipse installation, see the troubleshooting topic ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".

Adding Platforms and Packages
The Android SDK separates tools, platforms, and other components into packages you can download using the Android SDK Manager. The original SDK package you've downloaded includes only the SDK Tools. To develop an Android app, you also need to download at least one Android platform and the latest SDK Platform-tools.

Launch the SDK Manager.

If you've used the Windows installer to install the SDK tools, you should already have the Android SDK Manager open. Otherwise, you can launch the Android SDK Manager in one of the following ways:

On Windows, double-click the SDK Manager.exe file at the root of the Android SDK directory.
On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk.


The SDK Manager shows all the SDK packages available for you to add to your Android SDK. As a minimum configuration for your SDK, we recommend you install the following:
The latest Tools packages (check the Tools folder).
The latest version of Android (check the first Android folder).
The Android Support Library (open the Extras folder and check Android Support Library).

Once you've chosen your packages, click Install. The Android SDK Manager installs the selected packages into your Android SDK environment.

With these packages installed, you're ready to start developing. To get started, read Building Your First App.
 
The Android SDK Manager shows the SDK packages that are available, already installed, or for which an update is available.



Installing SVN plugin for EclipseStart Eclipse, then select Help > Install New Software.
Click Add, in the top-right corner.
In Work with select Indigo -
http://download.eclipse.org/releases/indigo
and below select Collaboration, select everything collaboration.

Click on finish to complete the installation. After installation you will need to restart Eclipse.
Clean Connector Install

After the Eclipse IDE installs, choose ‘Restart Now’. For me the Subversive Connector Discovery window came right back up. If it doesn’t for you, try to create a new SVN Project. I chose my Subversive SVN connectors and clicked ‘Finish’ and presto the installation continues without error. Select connectors applicable to your platform (64 bit or 32 bit)


Accept the license and click finish. I hope this is helpful to anyone with a fresh install.


Connect to remote Repository
I am using a Visual SVN Repository Server. I just created a user and a repository. I will now attempt to connect to the repository server using the http credentials of the user I created above.
Create a new connection and enter your repo locationTo connect to a remote Subversion repository within Eclipse, select:
   Window
      Open Perspective
         Other
            SVN Repository Exploring


You should see a perspective that has an SVN Repository window on the left side and an SVN Resource History at the bottom of the right-hand side of the Eclipse window.
Find (by mouse hovering on the rightmost button under the "SVN Repository" heading) and then click the "Add SVN Repository" button. Alternatively, you could right-click in the "SVN Repository" view to open a context menu, then select New - Repository Location. Enter the following as a new repository location


First open your new SVN perspective. Find the little icon with a small plus sign on it up in the top right of the SVN Repositories pane and click it. You should see the following dialog box titled "New Repository Location".

As it turns out, there are a couple ways to connect to the repository here. Both of the following will work in the "URL" field:


svn+ssh://{IP add.}/var/www/vhosts/{domain}/{repo}/{project}
svn+ssh://root%25{domain}@{domain}/var/www/vhosts/{domain}/{repo}/

http://IPaddress/svn/android
For User, and Password just type in your info, and click "Finish".
If you didn't get any error messages about the location not being valid or something you can move on to the next step. Unfortunately, this step is where you are likely to get hung up on the most. The only advice I can give is keep searching Google for more information.
 

Create a New or Import an Existing Project

Creating a New ProjectNow that you have your SVN connection set up properly, click back to your main workspace perspective. If you're creating a new project, right click its root folder, click Team --> Share Project. on the dialog that pops up, select your repository type (SVN), and click through the remaining options. 

Importing an Existing ProjectIf you're checking out an existing project it's just as simple a process. From the toolbar, click File --> Import in the dialog that pops up prompting you to "Select an import source:" select the one you just created (SVN) --> Project from SVN, click Next. "Use existing repository location:" should be checked by default, so select the "svn+ssh://..." path you just added, and click Next.

When you get to the screen above, click the Browse button, select your project folder and click OK. Then click Finish, and you're done.

No comments:

Post a Comment

Post a Comment