2016-07-03 45 views
0

嗯,我有一個非常簡單的問題。我目前已經安裝了NBAndroid插件Netbeans。 一切工作正常。如果沒有我不能使用Lambdas和Co的事實(版本1.5)。我試圖在項目屬性中更改此值,但不存在單一的可能性;或不?在Netbeans中設置Android項目的Java源/目標值?

[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release 
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release 
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options. 

謝謝您的建議! :)

回答

0

在您的項目樹中找到ant.properties並添加以下兩行代碼,將其替換爲您所擁有的Java SDK版本。它應該大於1.5和當前版本(1.8)。

java.target=1.8 
java.source=1.8 

希望它有幫助。