Ant use -source 7 or higher to enable diamond operator

前端 未结 4 1989
情书的邮戳
情书的邮戳 2021-02-05 09:11

I am sure this is pretty easy qoestion, but I am stuck with building Android app using Ant from commandline. I have got this message: (use -source 7 or higher to enable d

4条回答
  •  一整个雨季
    2021-02-05 09:45

    Just to clarify, I changed my ant.properties as follows:

    java.target=1.7
    java.source=1.7
    

    Making changes in build.xml before the above suggested line didn't work for me for some reason.

提交回复
热议问题