更新了flutter 报错


今天更新了Androidx 不出意外报错了,哎  看报错吧!

> Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.                          
   > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.          
     Required by:                                                                                                  
         project :app                                                                                              
         project :app > project :fluttertoast                                                                      
         project :app > project :shared_preferences                                                                
         project :app > project :flutter_custom_dialog                                                             
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.       
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37/flutter_embedding_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37/flutter_embedding_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom'.
               > Network is unreachable (connect failed)                                                           
      > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.       
         > Could not get resource 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37/flutter_embedding_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom'.
            > Could not GET 'http://download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37/flutter_embedding_debug-1.0.0-b6b54fd60631a3828c2e2c9b079b5d1d2d8c8c37.pom'.
               > Connect to 192.xxx.x.xxx:80 [/192.xxx.x.xxx] failed: connect timed out     

  倒霉孩子 我就知道是 下载失败了 究竟是为啥也不知道,捣鼓了半天,翻墙也不行日了狗 ,最后又仔细的看了下 最后一句话

 > Connect to 192.xxx.x.xxx:80 [/192.xxx.x.xxx] failed: connect timed out     

  发现代理报错,最后删除了as 的全局配置proxy就行。不说了心累

   终端输入

vim  ~/.gradle/gradle.properties  

 删除proxy 配置应该没有问题了 。


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM