- 檔案改爛了怎麼辦
a. git checkout [file_name]
b. git reset --hard
-commit之後改悔了,恢復到前一版的commit
a. git reset --hard HEAD^
<android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/,把這個project,載入到Eclipse
google-play-services_lib
專案,然後選取 [OK] 來新增 Google Play 服務程式庫 a.宣告 com.google.android.gms.ads.AdActivity,加入下面二行
<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Activity裡加入adView程式