Android studio冇拉拉閃退,聽人地話掹網線得,真係冇閃退,其實wifi仲連住網.
Android studio冇法執行Clang-Tidy:事因稳吾到或冇法執行clazy-standalone.
『Android studio』冇法執行『Clang-Tidy』:事因稳吾到或冇法執行『clazy-standalone』.
Unable to execute Clang-Tidy: clazy-standalone is not found or cannot be executed |
事因『Android Studio吾支持『clazy』
- 撳『File->Settings』
- 撳『Editor->Inspections->C/C++->Static Analysis Tools->』
- 禁用『Clazy』
TrueNAS®FTP
TureNAS-內建支援FTP,即使出到街也可係『手機』同『NAS』傳蒞傳去.
ftp://username:password@truenas/ |
- 登入後臺
- 創建戶口User , 作為FTP『名稱』『密碼』
- 撳『System Settings』->『Services』
- 使能『FTP』->『Runing』
- 勾『FTP』->『Start Automatically』
- 撳『FTP』->『Configure』
- 撳『Advanced Options』
- 『File Permissions』同『Directory Permissions』
- 『Read』『Write』『Execute』權冚辦闌勾.
- 撳『save』
Windows10
- 撳『Win+E』鍵『檔案總管』
- 填『ftp://truenas/』或『ftp://username:password@truenas/』連FTP
- 『Username』填FTP『名稱』
- 『password』填FTP『密碼』
- 勾『儲存密碼』
- 撳『登入』
Android
- 『檔案瀏覽器』->『新增FTP伺服器』
- 『SERVER』填『168.1.X』
- 『PORT』填『21』
- 『模式』勾『被動』
- 『Username』填FTP『名稱』
- 『password』填FTP『密碼』
- 撳『ENTER』
Android Studio-CXX5202
Android Studio冇端端彈出[CXX5202] 錯誤碼,android程式僅僅支持32BIT/x86庫. 而Google Play自2019年8月1日起, 要支持64Bit庫,
- 下載最新Android SDK , 撳Tools->Android SDK.
- 下載API 21以上版本Android SDK
- 編輯『xml』
- 更改編譯SDK版本『android:targetSdkVersion=”31″』
<uses-sdk android:minSdkVersion=”9″ android:targetSdkVersion=”31″ /> |
[CXX5202] This app only has 32-bit [armeabi-v7a,x86] native libraries. Beginning August 1, 2019 Google Play store requires that all apps that include native libraries must provide 64-bit versions. For more information, visit https://g.co/64-bit-requirement |
Android Studio NDK-時間
『西曆』 即『儒略曆』, 電腦內置硬件時鐘,得以存儲時間.
- 首先取『格林威治標准時鐘』GMT.
time_t _time; |
time(&_time); |
- 『格林威治標准時鐘』轉『本地時鐘』, 据時區調整時鐘.
tm * _tm; |
_tm = localtime(&_time); |
tm將『本地時鐘』分解為『年』『月』『日』『時』『分』『秒』『禮拜』.
struct tm{ | 簡述 |
int tm_year; | 1900 + 年 |
int tm_mon; | 月 0~11 |
int tm_mday; | 日 1~31 |
int tm_hour; | 時 0~23 |
int tm_min | 分 Minute 0~59 |
int tm_sec; | 秒 second 0~60, 60為潤秒,天文曆校准. |
int tm_wday; | 禮拜, 0=禮拜日,1=禮拜壹,2=禮拜貳,3=禮拜三,4=禮拜肆,5=禮拜伍,6=禮拜陸 |
int tm_yday; | 年日,(0~365),壹月壹=0,拾貳月參拾=365 |
int tm_isdst;
} |
夏令时 Daylight saving time,
DST=0冇夏令时, DST>0有夏令时, DST<0夏令时冇效 |
i-gota USB2.0 micro 5pin專業級高速傅輸線
Android Studio 調試APP要係Android舊機測試, 舊機采用micro USB口, 廉价USB 線叉唔入電,調試連線唔認機.
功欲善其事,必先利器,靚USB線先可事半功倍.
昶興電子出品,『超高密度編織網遮蔽層』+『鋁箔防護層』+『抗干擾磁環』
Android Studio-Touch模拟『單擊』『雙擊』
Android触摸Touch 手指触摸荧屏傳遞『鬆UP』『撳DOWN』『拖DRAGGED』基礎信息, 要模拟『單擊』『雙擊』, 首先定義信息指令.
#define TOUCH_CLICK 4 | 單擊 |
#define TOUCH_DOUBLECLICK 5 | 雙擊 |
定義『單擊』『雙擊』時間間隔. 约摸0.1秒即触發單擊,
#define TOUCH_TIME_CLICK 0.5f | 單擊 500毫秒 |
#define TOUCH_TIME_DOUBLECLICK 0.5f | 雙擊 500毫秒 |
定義冚域變量,記录『撳up』『單擊click』触發時間.
double touch_time_down; | 撳-进程時鐘 |
double touch_time_click; | 單擊-进程時鐘 |
获得進程時鐘信号
clock_t clock(void); |
每秒時鐘計時单位
#define CLOCKS_PER_SEC 1000000 | 時鐘单位 |
計進程時間,單位『秒』
『進程時間=時鐘信号/时鐘单位』
double currTime = clock() / CLOCKS_PER_SEC ; |
當接收『鬆UP』指令.
if(action == TOUCH_UP){//鬆 |
判斷两次單擊小於0.5秒触發雙擊
if((currTime – touch_time_click) < TOUCH_TIME_DOUBLECLICK ) { |
touch->action[finger] = TOUCH_DOUBLECLICK; //細過500ms 雙擊 |
touch_time_click = currTime; } |
判斷『鬆UP』『撳DOWN』小於0.5秒触發單擊
else if((currTime – touch_time_down) < TOUCH_TIME_CLICK ) {// 細過500ms |
touch->action[finger] = TOUCH_CLICK; //單擊 |
touch_time_click = currTime; }} |
記录『撳DOWN』
if(action == TOUCH_DOWN) |
touch_time_down = currTime;//撳-进程時間 |
Android Studio NDK-Debg APP装apk程式失敗
係『LGE Nexus 5』行Debg,報『The application could not be installed: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES』簽名衝突未能裝APK程式.
事因先前重装『Android Studio』, ADB Debug簽名改變造成.手動卸載舊版搞掂.
07/12 20:16:23: Launching ‘app’ on LGE Nexus 5. |
Installation did not succeed. |
The application could not be installed: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES |
List of apks:
[0] ‘D:\ANDROID\GeomanticCompass\app\build\intermediates\apk\debug\app-debug.apk’ |
Installation failed due to: ‘Failed to commit install session 1496268207 with command pm install-commit 1496268207. Error: INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES: New package has a different signature: net.bookcard.geomanticcompass’ |
Retry |
Failed to launch an application on all devices |
游戲輵-紋理邊缘白色毛剌
『紋理』『背景色』指『透明色』,PHOTOSHOP『透明色』默認係『白』. 係OpengGL貼圖邊缘產生白色毛剌, 如果『透明色』改為『黑』, OpengGL貼圖邊缘產生黑色邊框.
- Photoshop開啟『.PSD』圖檔.
- 清除『背景色』
- 『影像』->『模式』->『索引色』
- 『要合併可圖層並放棄隱藏圖層嗎?』撳『確定』.
『索引色』 | |
色盤 | 局部(最適化) |
顏色 | 256 |
强制 | 無 |
透明 | 勾選 |
邊緣調合 | 無 |
混色 | 無 |
- 『影像』->『模式』->『色彩表』
- 『色彩表』最屘『透明色』改為『黑』.
- 導出圖檔
Android Studio-C/C++代碼超出(500kB)限制代碼解析失效
重装Android Studio後,舊時C/C++代碼超出(500kB)限制.代碼解析失效.
File size(698.07kB) exceeds configured limit for C/C++ (500kB).Code insight features are not available. |
撳『Change the maximun file length』更改限制長度. 係右上角
Maximun File Length |
Enter the new maximun length for C/C++ files in characters |
你必須登入才能發表留言。