如何从源代码创建一个新的Eclipse项目进入eclipse? [英] How to import an Android project in to eclipse with out creating a new one from source?

查看:205
本文介绍了如何从源代码创建一个新的Eclipse项目进入eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将项目导入到Eclipse中,而无需从源创建新项目。所以我可以使用文件夹和文件与Subversion从已经在开发中已经签出的项目。 Eclipse导入该项目但遗漏了androidmanifest.xml,并且没有生成R.java。



这对我来说不起作用:



解决:如果你想从现有的来源创建项目,您需要创建一个新目录,然后将项目目录树放入该新目录。然后在导入时指向新目录。
*我在韩国网站上找到了解决方案,这就是为什么我错过了我第一次使用谷歌搜索。

解决方案

已解决:结果/ res文件夹中的.png文件导致错误,所以没有生成R.java文件( R无法解析 - Android错误)。我重新将它们保存为.png文件,并写过原始文件,并修复了该问题。



当导入时,我也执行了ctrl + shift + o,并添加了导入R .java女巫需要删除。



然后我发现这个帖子修正了错误:转换为Dalvik格式失败,错误1在外部JAR上


I would like to import a project in to Eclipse without having to "create a new project from the source". So that I can use folder and files with subversion from a project that is already in development that I have checked out. Eclipse with import the project but leaves out the androidmanifest.xml and the R.java is not generated.

This doesn't work for me:

Solved: If you want to "Create project from existing source", you need to create a new directory and then put the project directory tree into that new directory. Then point to the new directory when importing. *I found the solution on a Korean website, that's why I missed my first search with google.

解决方案

Solved: Turns out the .png files in the /res folder were causing errors, so the R.java file wasnt being generated( R cannot be resolved - Android error ). I re-saved them as .png files and over wrote the originals and that fixed that problem.

Also when imported I did ctrl+shift+o and it added import R.java witch needed to be deleted.

I then was getting an error that was fixed by this post: "Conversion to Dalvik format failed with error 1" on external JAR

这篇关于如何从源代码创建一个新的Eclipse项目进入eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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