旧版本的Eclipse项目 导入 Neon 4.6 出现不兼容

来源:互联网 发布:centos后端数据库 编辑:程序博客网 时间:2024/05/10 20:35

解决办法:更新.classpath和.project
(1).classpath:

<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>替换成:<classpathentry kind="con" path="org.eclipse.andmore.ANDROID_FRAMEWORK"/>

(2).project更新为新的:

<?xml version="1.0" encoding="UTF-8"?><projectDescription>    <name>Demo</name>    <comment></comment>    <projects>    </projects>    <buildSpec>        <buildCommand>            <name>org.eclipse.andmore.ResourceManagerBuilder</name>            <arguments>            </arguments>        </buildCommand>        <buildCommand>            <name>org.eclipse.andmore.PreCompilerBuilder</name>            <arguments>            </arguments>        </buildCommand>        <buildCommand>            <name>org.eclipse.jdt.core.javabuilder</name>            <arguments>            </arguments>        </buildCommand>        <buildCommand>            <name>org.eclipse.andmore.ApkBuilder</name>            <arguments>            </arguments>        </buildCommand>    </buildSpec>    <natures>        <nature>org.eclipse.andmore.AndroidNature</nature>        <nature>org.eclipse.jdt.core.javanature</nature>    </natures></projectDescription>
0 0
原创粉丝点击