這可能聽起來,這個問題是一個重複:如何在IntelliJ Idea上設置admob?
How to properly configure AdMob using IntelliJ IDEA?
但它不是! (特別是因爲這個問題是從2011年開始的,谷歌過程發生了變化(看起來))。 I'm following this google-reference for proper setup.
首先,有「使用Android Studio」選項,我不知道這是什麼。然後,我去了下一個:「使用Eclipse或另一個IDE」,然後有一個筆記,這是非常直的。
我選擇我的項目上的IntelliJ IDEA,按下F4 (開放式模塊設置),去的SDK的平臺設置,只是增加他們要求的文件夾(\演員谷歌\ google_play_services)。假設這是「添加谷歌廣告庫」的正確方法,我繼續向清單文件添加他們要求的內容。當我編譯應用程序,我得到的錯誤:
D:\Computer Programming\IdeaProjects\Black Square\AndroidManifest.xml:8: error:
Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
所以,現在看來,我沒有正確導入,它(從,我不知道如何着手這一部分)。