發表文章

目前顯示的是 3月, 2015的文章

Requires ACCESS_MOCK_LOCATION secure setting

紀錄一下: 在執行有使用到Mock Location的app時,出現  E/AndroidRuntime(889): Caused by: java.lang.SecurityException: Requires ACCESS_MOCK_LOCATION secure setting 雖然AndroidManifest裡已有設定權限了,這問題還是存在。    原來使用實體手機驗証時,需要把開發人員選項裡的 "允許模擬位置"打開才行。

compile vlc on android

https://wiki.videolan.org/AndroidCompile/ 紀錄一下遇到的問題: 1. 第一次進行sh compile.sh 時,出現 Archive:  gradle-2.2.1-all.zip   End-of-central-directory signature not found.  Either this file is not   a zipfile, or it constitutes one disk of a multi-part archive.  In the   latter case the central directory and zipfile comment will be found on   the last disk(s) of this archive. unzip:  cannot find zipfile directory in one of gradle-2.2.1-all.zip or         gradle-2.2.1-all.zip.zip, and cannot find gradle-2.2.1-all.zip.ZIP, period. 在資料夾底下 都會有一個未完整的gradle-2.2.1-all.zip,爬了一下文http://metalkin.tistory.com/82 雖然說是韓文...但大概可以猜到怎麼解 修改 compile.sh at Line 81: wget ${GRADLE_URL} 2>/dev/null || curl -O ${GRADLE_URL} =>wget ${GRADLE_URL} 2>/dev/null || curl -O -L ${GRADLE_URL}