更新了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