导入已存在的android工程到eclipse

上一篇 / 下一篇  2011-05-30 14:02:20 / 个人分类:单元测试

file-import;选择"Existing Projects inoto Workspace",选择文件夹,选择所属Projects,Finish;

1)编译时如果遇到:Error: Unable to open class file R.java

1) Open the Preferences Window by clicking “Window -> Preferences”

2) Find theJavasection and expand it

3) Select “Build Path

4) Change the value of Source and output folder from Folders to “Project”

5) Click Apply and then “OK

Your problem should be resolved!

2)运行时如果遇到“Description Resource Path Location Type:The project cannot be built until build path errors are resolved    KortonOut Unknown Java Problem”包找不到,可能是工程的Android环境不正确类似错误

右击工程文件夹-Properties;选择Android,选择正确的Project Build Target ;Apply;OK



TAG:

 

评分:0

我来说两句

Open Toolbar