问题: 对于用eclipse生成的android项目都会产生一个.project文件,而很多从网上下载的项目没有此文件,导入会报错(会认为没有项目,其实只差.project文件)
解决: 从其他的android项目复制粘贴一个.project文件过来,然后把里边的项目名称改为你自己的项目名称(不改项目名称也无法导入),导入成功
.project文件里除了项目名称,就是一些插件了
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>fragments</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
还有一个问题,有个项目没有.project文件也可以正常导入,其他的就不行,这就不知道为什么了