Ant use -source 7 or higher to enable diamond operator

前端 未结 4 2042
情书的邮戳
情书的邮戳 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条回答
  •  Happy的楠姐
    2021-02-05 09:52

    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!

提交回复
热议问题