Ant use -source 7 or higher to enable diamond operator

前端 未结 4 640
栀梦
栀梦 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:47

    Heisenberg's solution is correct (kudos and +1...) but not clean: you don't have to change the master build.xml file (bad!), what you need is to add the lines he suggested:

    
    
    

    right before the line

    
    

    in the local build.xml file, and the default options will be overridden.

    Hope it helps!

提交回复
热议问题