因為Admob 網站有公告Deprecated. On August 1, 2014, Google Play will stop accepting new or updated apps that use the old standalone Google Mobile Ads SDK v6.4.1 or lower. You must upgrade to the Google Play version of the Mobile Ads SDK by then. 

因為Admob 網站有公告

早晚都要換成Google play,所以就找時間試看看.Google 網站還寫得滿清楚的

 

我就遇到的問題做個紀錄

1.Add and reference the Google Play services library project

adt-bundle-windows-x86_64-20130917\sdk\extras\google\admob_ads_sdk 可以找到Google Play services library project

20140414001  

紅色的部分記得打勾

 

2.其他部分照Google指示照做即可

3.想不到我的專案加入library後全部都打X,一查是 ADT 14,the constants are not final in a library project. Therefore your code would no longer compile.   

解決辦法是Convert the switch statement into an if-else statement.

把滑鼠只到switch,使用快捷鍵Ctrl+1 轉換 if-else 轉換後就好了(點兩下自動轉).

可參考http://blog.csdn.net/javayinjaibo/article/details/8287238

 

arrow
arrow

    台灣蝸牛 發表在 痞客邦 留言(0) 人氣()