Eclipse导入工程时报错,Invalid project description

.project文件中name是否与你的工程名相同
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
    <name>YourProjectName</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>

你可能感兴趣的:(Eclipse导入工程时报错,Invalid project description)