Ant use -source 7 or higher to enable diamond operator

前端 未结 4 639
栀梦
栀梦 2021-02-05 09:21

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:53

    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.

提交回复
热议问题