原创 轉:ubuntu 16.04 openjdk 7編譯

轉自:https://www.cnblogs.com/Vicent-Chen/p/7708932.html 1.準備環境: 1)編譯openjdk對應的版本jdk6 我們可以直接去到http://www.oracle.com/techne

原创 [RK3399] [android 7.1.2]添加預裝應用

一.整體思路 將預裝的apk拷貝到相應device/rockchip/rk33xx/preinstall 目錄中,編譯,刷機,預裝應用自動安裝 二.詳細過程 1.platform確定 device/rockchip/common/devi

原创 Android 編譯清除單個模塊

make clean-services

原创 all-makefiles-under函數不是遞歸遍歷子目錄

include $(call all-makefiles-under,$(LOCAL_PATH)) 在Android的源代碼中的mk文件中,我們經常會看到上面這句話,從字面意思看是,include目錄下所有的mk文件,那麼這裏面有兩個坑,

原创 Linux下查看目錄佔磁盤大小

一、du的功能:`du` reports the amount of disk space used by the specified files and for each subdirectory (o

原创 I am back

好長時間沒寫博客,今天打開突然一股AI小清新風拂面而來,順手記一下,算是爲CSDN加把油吧

原创 git撤銷本地所有未提交的更改

1. git clean -df 2. git reset --hard 第一個命令只刪除所有untracked的文件,如果文件已經被tracked, 修改過的文件不會被回退。而第二個命令把tracked

原创 switch 語句:error : crosses initialization of 'xxx' and jump to case label [-fpermissive]

1.錯誤 case Hearting: baseDG heartReply; heartReply.set_cmd(HeartReply); heartReply.set_tagid(mesg->tagid());

原创 android make編譯 no rule to make "xxx",need "xxx"

編譯安卓源碼時遇到錯誤:no rule to make out/target/common/obj/JAVA_LIBRARIES/services_intermediates/class_debug.jar, need out/targe

原创 git clone ssh: connect to host 192.168.11.180 port 22: Connection refused git客戶端連接ssh端口不是22的gitlab

git客戶端連接ssh端口不是22的gitlabgit clone ssh://[email protected]:9922/xxx/CriminalIntent.git

原创 NDK 錯誤:Unable to launch cygpath. Is Cygwin on the path

Head to the project's properties. If you're using Windows, the shortcut is Alt + Enter; or simply right-click the proj

原创 android NDK:如何添加預編譯靜態庫 libwebrtc_yuv.a爲例

項目上需要使用第三方預編譯靜態庫,網上資料甚少,之前總結過添加動態共享庫,在此以NDK添加libwebrtc_yuv.a爲例,記錄下期間遇到的問題。 目標:使用libwebrtc_yuv.a相關函數 材料:需要libwebrtc_yuv.

原创 android apk安裝簽名衝突錯誤解決

一.error: INSTALL_FAILED_UPDATE_INCOMPATIBLE 實際未完全卸載應用。幾個方法: 1:adb uninstall 包名完成卸載 2.手動卸載       adb shell($1:應用名稱)    

原创 NDK :Type 'xxx' could not be resolved解決

1.錯誤: Unresolved inclusion: <jni.h>、Type 'jint' could not be resolved、Type 'jintArray' could not be resolved 2.原因 頭文件未引

原创 android NDK :使用預編譯第三方庫

預編譯第三方庫通常基於兩個目的,一個是提供該庫者並不想開源代碼,二是開發者可以加快自個項目構建。 下面是一個使用G726 codec編碼庫的demo。 1.編譯G726 codec,編譯G726 。將G726相關code copy到編譯目