Tuesday, January 19, 2016

Migrate FindLocation (WhereAreYou) project to Android Studio 1.5.1

做完 "Migrate MyLocation (IAmHere) project to Android Studio 1.5.1", 有左經驗, 諗住 FindLocation (WhereAreYou) 都係照做就攪掂....但係, 現實永遠無咁順利既.

唔想花太多時間, 如果同 MyLocation 一樣既就唔再詳細講點做了.
由於 FindLocation 後期改過 D 野, 有 D 地方版本比 MyLocation 新, 不過都無分別, 已經係舊版, 都係要再上最新版.

(1) SDK Path changed.
 - 同 MyLocation 一樣.


(2) Failed to find Build Tools revision 21.0.2
- 同 MyLocation 一樣, 只不過之前 FindLocation 用左 21.0.2, 都係改番 23 同 23.0.2.


(3) The project is using an unsupported version of the Android Grade plug-in (0.13.2).  The recommended version is 1.5.0
- 同 MyLocation 一樣, 只不過之前 FindLocation 用左 0.13.2, 都係自動 fix.


(4) Gradle DSL method not found: 'runProguard()'
 - 同 MyLocation 一樣, 改成 minifyEnabled 就解決了.


(5) Oh.....無野睇既?
- 初時諗住, build 到就掂喇.  點知.....


呢度其實有兩個問題:
(1)  Google Maps 既 API Key 未加入呢部電腦既資料
(2)  我係用 AVD 行既, 而個 network 係有 proxy, AVD 出 proxy 既 setting 未攪掂.



No comments:

Post a Comment