原创 Error:Authentication scheme ‘all’(Authentication) is not supported by protocol ‘file’

升級gradle後編譯報錯:Error:Authentication scheme ‘all’(Authentication) is not supported by protocol ‘file’ 將原項目的build.gradle文

原创 Unable to 'pub upgrade' flutter tool. Retrying in five seconds

剛剛在升級flutter時卡住了,等了很久就關掉重新升級,然後就遇到了這個錯誤。 解決方法:刪除 flutter SDK中 bin/cache 文件夾,然後再flutter upgrade就可以了。

原创 Invalid character found in method name. HTTP method names must be tokens.

       今天使用Tomcat時遇到了這個錯誤信息,百度,Google出來的解決方案大多是在server.xml中加上maxHttpHeaderSize=”8192”或者把https改成http。我的項目用的本來就是http,maxH

原创 Android 更新UI的幾種方法

總結一下Android中幾種常用的更新UI的方法: 1.用handler的post方法更新UI 2.在handleMessage()方法中更新UI 3.用runOnUiThread()方法更新UI 4.用view的post方法更新UI

原创 Android Studio常用快捷鍵

           Android Studio的快捷鍵與eclipse有很大不同,這裏總結了一些Android  Studio常用的快捷鍵: logt :生成Tag logm :在類中自動生成帶方法名的debug日誌 Ctrl+斜槓:

原创 Exception raised during rendering:com/android/util/PropertiesMap解決方法

             在用android studio可視化界面的時候遇到了這個問題, 解決方法:  嘗試更改版本即可。 用低一點的API就不會有問題了

原创 Using version 1.0.0-alpha8 of the constraint library, which is obsolete

           最近在使用ConstraintLayout 時報錯如下: Using version 1.0.0-alpha8 of the constraint library, which is obsolete 查詢之後發現是

原创 Can’t start Git:git.exe

           導入別人的AndroidStudio項目後提示:Can’t start Git:git.exe Git就是個類似插件,在Git的官網上註冊個賬號然後每次編譯就會自動把程序上傳到網上備份。可以方便查詢自己的歷史版本之類

原创 Expected resource of type animator......

             Android Studio項目遷移時遇到了Expected resource of type animator......的錯誤提示(項目SDK版本有所變化), 錯誤代碼: 錯誤提示: 解決方法: 在res

原创 performClick()方法的使用

1. performClick()方法的作用:    performClick()方法 是使用代碼主動去調用控件的點擊事件(模擬人手去觸摸控件) 2.  使用注意事項:  如果同時使用了view.setOnTouchListener(