能在JDK 1.7 Android SDK的工作? [英] Can the Android SDK work with JDK 1.7?

查看:136
本文介绍了能在JDK 1.7 Android SDK的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚安装了Android SDK R16和JDK 7,但我不断收到错误

I just installed the Android SDK R16 and JDK 7, but I keep getting the error

Android的需要编译器遵从性级别5.0或6.0。找到1.7代替。请使用Android的工具>修复项目属性。

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties."

我使用的是JRE 1.7的一些特点,所以我不能只是将其切换到1.6。我该如何解决这个问题呢?

I am using some features of the JRE 1.7, so I can't just switch it to 1.6. How can I fix this problem?

推荐答案

您只需要在电脑上1.6 present。我有同样的问题。安装1.6 JDK,并将其添加为已知的JDK,但实际上并没有选择它为你的项目。

You just need 1.6 present on your PC. I had the same problem. Install 1.6 JDK, and add it as known JDK, but don't actually select it for your project.

这篇关于能在JDK 1.7 Android SDK的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆