原创 NDK is missing a "platforms" directory. 問題解決

問題描述 NDK is missing a “platforms” directory. If you are using NDK, verify the ndk.dir is set to a valid NDK direct

原创 [例題]次方的程序證明部分正確性,Floyd的不變式斷言法

對於任何給定的整數x1和自然數 ,計算z=x1x2(x1x2表示 的x2次方) 表示x1的 次方 次方) 對於任何給定的整數 和自然數x2,計算 和自然數 的程序的流程圖如下 該題的難點就是找出 循環不變量(loop inv

原创 [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size

問題描述 nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size 原因 設

原创 解決 error: item inner element must either be a resource reference or empty.

錯誤描述 error: < item> inner element must either be a resource reference or empty. 新版本的Gradle對資源格式校驗變得嚴格 所以出現以上錯誤 根據

原创 給Android7及以上的手機安裝系統級證書,實現Fiddler或者其他程序的HTTPS的抓包

給Android7及以上的手機安裝系統級證書,實現HTTPS的抓包 Android7以後,系統不再信任用戶級的證書,只信任系統級的證書,所以要抓包就需要把我們的代理程序證書安裝至Android的系統目錄中 準備 一臺已root的

原创 RecyclerView、ListView的Item點擊事件不響應/無效

如果Item是Button,換成其他控件即可 Button會搶佔Item的點擊事件

原创 Minimum supported Gradle version is x.x.x. Current version is x.x.x. gradle plugin 不支持當前的gradle版本

問題描述 升級了Gradle Plugin之後,項目build時提示如下錯誤 Minimum supported Gradle version is 5.4.1. Current version is 4.6. 解決方法

原创 下載BootStrap的官方example

當前最新版本是4.4,對應的example地址是: https://getbootstrap.com/docs/4.4/examples/ 不過上述地址只能預覽,不能直接下載 下載example的方法是到Github直接下載

原创 Springboot中獲取本機IP、端口號和Context-path,項目啓動後輸出路徑

獲取IP 直接使用InetAddress: String IP = InetAddress.getLocalHost().getHostAddress(); 獲取端口號 1.使用配置文件獲取(可能返回爲空) Environmen

原创 IDEA中javaWeb項目靜態資源無法訪問/靜態資源沒有部署到Tomcat

關於IDEA沒有將項目靜態資源拷貝到tomcat的問題 因爲沒有將放置靜態資源的目錄設置爲資源目錄,所以沒有被拷貝至tomcat下 解決方法 File -> Project Structure… -> Modules 選擇靜態

原创 Android Killer 查看Java源碼(運行jd-gui.exe) 時提示“無法驗證開發者,你確定要運行此軟件嗎?”(打開文件-安全警告)的解決方式

問題描述 在Android Killer中需要將smali轉爲Java查看時,在smali文件中點擊右鍵→查看源碼。或者點擊smali窗口的小Java圖標查看Java源碼。 此時會提醒“無法驗證開發者,你確定要運行此軟件嗎?”,但

原创 ERROR: Failed to resolve: xxx.xx Add Google Maven repository and sync project

問題描述: ERROR: Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2 Add Google Maven repository

原创 [教程]Android killer簡單去除 APP 的專業版功能限制思路分享,demo是一個查詢Android API的APP,已支持API28

軟件介紹 Offline Android API Reference(離線Android API參考) 應用程序包含6500+(300+個包)的Android類信息,並且已經支持API等級28(Android 9.0) 所有 A

原创 IDEA/Android Studio 修改默認作者信息和可用的模板

修改的入口 File -> Settings… -> Editor -> File and Code Templates 常用模板 模板 描述 ${USER} 當前系統的登錄用戶名 ${PROJECT_NA

原创 Springboot中獲取本機IP、端口號和Context-path,啓動完成輸出路徑

獲取IP 直接使用InetAddress: String IP = InetAddress.getLocalHost().getHostAddress(); 獲取端口號 1.使用配置文件獲取(可能返回爲空) Environmen