Android eclipse unable to launch:The selection can not be launched,and there are no recent launches

    xiaoxiao2026-03-15  7

    出现这个问题基本就是两方面的问题:

    1:代码问题 没有启动的入口。可以检查有没有缺少static什么的

    2:所有代码都启动不了,那就是eclipse 的问题,最大的问题可能就是JDK问题

      2.1 JDK 版本不支持问题 

        建议选择项目-点击右键-Android tools- fix project properties 

            或选择项目-点击右键-properties-java compiler 查看jdk版本,并与安装的JDK版本对比,路径可以在(我的电脑|计算机-右键属性-高级系统设置-高级-环境变量-系统变量-path中查看到)。

      2.2 JDK路径问题

       前往 我的电脑|计算机-右键属性-高级系统设置-高级-环境变量-系统变量-path中设置新路径或把JDK安装到该路径下。

      2.3 如果配置完成后,有时打开还是显示 该提示:The selection can not be launched,and there are no recent launches。那么你可在选择项目-点击右键-properties-java compiler中选择更改一下JDK 版本,然后在改为原来的JDK,然后点击一下 apply,再点击OK然后就好了。。。我遇到过这个情况

      2.4如果启动有如下问题:

    Android requires compiler compliance level 5.0 or 6.0. Found '1.7'或'1.8' instead

    可参照帖子:

    http://blog.csdn.net/luzhenyuxfcy/article/details/46638127

    转载请注明原文地址: https://ju.6miu.com/read-1307979.html
    最新回复(0)