Ant debug and ant release failed

前端 未结 4 603
既然无缘
既然无缘 2021-01-05 19:16

I am trying to generate apk on command line using ant. I am able to use ant clean but for ant debug and ant release command I am getting following error.

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-05 20:14

    I had the same error after updating the android SDK to the latest build tools.

    The tools\ant\build.xml script does not contain any references for the tools.

    This can be solved, by adding the tools to the build.xml and point to the correct path. For me this was build-tools\22.0.1

    Please compare and update the tool section in build.xml

    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    Thank you Alex for the tip!

提交回复
热议问题