Android+Eclipse 项目通过 SVN 共享? [英] Android+Eclipse project sharing via SVN?

查看:15
本文介绍了Android+Eclipse 项目通过 SVN 共享?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Eclipse(Galileo,Java 开发人员的 Eclipse IDE)非常陌生,正在开发我的第一个 Android 应用程序,但在许多其他类型的项目和开发中使用了 SVN.昨晚,我第一次尝试将新源代码推送到共享存储库(在工作中),然后将其拉回家中.

I am very new to Eclipse (Galileo, Eclipse IDE for Java Developers) and working on my first Android app, but have used SVN on many other kinds of projects and development. Last night I took my first crack at pushing the new source into a shared repository (at work) and then pulling it back down at home.

基于 SO 问题/答案,我忽略了 bingen 文件夹,但添加了其他所有内容.当我回到家时,我曾希望它会像将 eclipse 指向新下载的源代码树一样简单.

Based on an SO question/answer, I had ignored the bin and gen folders, but added everything else. When I got home, I had hoped it would be as easy as pointing eclipse to the newly downloaded source tree.

我尝试将工作区(在 eclipse 启动时请求)设置为包含所有源的精确文件夹.什么都没有出现.无论工作区文件夹中的所有源文件和文件如何,我都好像重新开始一样.

I tried setting the workspace (requested when eclipse started) to the precise folder holding all source. Nothing showed up. It was as if I were starting fresh regardless of all the source and files sitting in the workspace folder.

然后我想也许我需要打开一个项目"文件才能让事情顺利进行.打开 .project 文件,在 eclipse 的 XML 编辑器中得到该文件的内容.

Then I thought maybe I needed to open a "project" file to get things rolling. Opening the .project file yielded the contents of that file in the XML editor of eclipse.

我在这里错过了什么?项目元数据是否未存储在源树中?我是否必须在获得源工作副本的每台机器上构建项目元数据?我的家庭 Eclipse 安装有问题吗?有人可以概述一下他们是如何(成功地)做到这一点的吗?

What am I missing here? Is the project metadata not stored in the source tree? Do I have to build project metadata up on every machine that gets a working copy of the source? Is this something wrong with my home Eclipse install? Can someone give me an overview of how they (successfully) do this?

推荐答案

你应该能够像你尝试过的那样去做.确保您已安装 Android 开发工具(android eclipse 插件)以及 android SDK,并确保在打开项目之前设置 ADT.

You should be able to do it like you tried. Make sure you have the Android Development Tools (android eclipse plugin) installed along with the android SDK and make sure you set up ADT before you open the project.

不检查 bin 目录对我来说很有意义,但我确实检查了 gen 文件夹并且没有任何问题.

Not checking in the bin directory makes sense to me, but I do check in the gen folder and don't have any problems.

如果源代码已经在机器上,我这样做是为了从 SVN 打开一个项目:

Here is what I do to open a project from SVN if the source is already on the machine:

  1. 打开日食
  2. 点击文件->导入
  3. 选择General->Existing Projects into Workspace

或者你也可以这样做:

  1. 打开 Eclipse
  2. 文件 -> 导入
  3. 选择 SVN -> 从 SVN 检出项目
  4. 按照步骤从 SVN 获取

这篇关于Android+Eclipse 项目通过 SVN 共享?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆