我的 Android Studio 版本是 2.1 预览版。我正在使用 Google API、Android 17、rev 4 (API 17) 运行我的项目。
调试应用程序时出现 1 个弹出错误。
[Information: Image to show my pop-up errror. Click to show this.][1]
我以前从未遇到过这样的错误。我该如何解决这个问题?
更新:
我经常遇到这样的错误:
error: diamond operator is not supported in -source 1.6
(use -source 7 or higher to enable diamond operator
我正在尝试对此进行研究。我试过了,但从来没有成功过。这个错误什么时候出现,我该如何解决?
谢谢。
原文由 Luna 发布,翻译遵循 CC BY-SA 4.0 许可协议
打开 Android Studio 首选项-> 搜索“SDK”-> 编辑 Android SDK 位置,将其指向您的 sdk android 文件夹。
更新
为了解决这个错误
下载 jdk 1.7 并打开 Module Setting -> SDK Location -> edit JDK Location 将其指向 jdk 1.7 home foler。