こう書いてあるけど。
ADT 22.6.0 (March 2014)
・・・
Added support for Java 7 language features like multi-catch, try-with-resources, and the diamond operator. These features require version 19 or higher of the Build Tools. Try-with-resources requires minSdkVersion 19; the rest of the new language features require minSdkVersion 8 or higher.
・・・
ADT Plugin | Android Developers
以下のような状態だと。
o multi-catch
x try-with-resources
o diamond operator
o strings in switches
try-with-resource(リソース付きtry/勝手にclose) のみAPI19以降。
try (FileInputStream input = new FileInputStream("file.txt")) { int data = input.read(); while(data != -1){ System.out.print((char) data); data = input.read(); } }
なので、もうあげちゃいます Java6 から java7 へ。