flutter Failed to find Build Tools revision 31.0.0

FAILURE: Build failed with an exception.                                
                                                                        
* What went wrong:                                                      
Could not determine the dependencies of task ':app:lintVitalRelease'.   
> Could not resolve all dependencies for configuration ':app:lintClassPath'.
   > Could not create task ':app:minifyReleaseWithR8'.                  
      > Failed to find Build Tools revision 31.0.0                      
                                                                        
* Try:                                                                  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
                                            

截屏2021-07-24 下午7.11.17.png

下面是android studio的配置截图截屏2021-07-24 下午7.14.00.png

andriod studio可以打包,vscode中无法打包,且已经在.zshrc中配置了相应的环境变量
截屏2021-07-24 下午7.15.21.png
请各位大佬帮忙看下,谢谢

阅读 3.4k
1 个回答

android studio无法使用31打包,需要使用31以下sdk打包

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题