2

我已經註冊了與谷歌GCM帳戶,併成立了我的應用程序接受推送通知,但在模擬器我沒有收到他們(我也試圖用的情況下,第三方測試應用程序(https://imamraza.wordpress.com/2013/09/04/how-to-test-android-gcm-push-notification/)我做錯了什麼,並且不工作要麼 - 我沒有獲得用於測試的真實設備不幸)。在推Android模擬器的通知(5.1.1或更高版本)

在閱讀了一些其他的StackOverflow答案(Android emulator not receiving push notifications,Push notifications don't work)之後,似乎我需要用Google APIs目標創建一個模擬器。起初它不在那裏,但在Android SDK Manager中添加了更多的包後,我能夠看到Google APIs作爲目標。不幸的是設定的目標是,在CPU結果/ ABI「安裝了此目標沒有系統映像」錯誤:

enter image description here

一些周圍挖掘後,我一頭栽進更是這樣的答案,提示安裝額外的軟件包(Fail to create Android virtual Device, "No system image installed for this Target" )。這並沒有幫助,這裏是我現在已經安裝:

enter image description here enter image description here

從我的列表中缺少一些其他人推薦的唯一的事情就是「Android的支持」庫,這顯然似乎根據android list sdk -a --extended被現在已經過時:

---------- 
id: 140 or "extra-android-support" 
    Type: Extra 
    Desc: Android Support Library, revision 23.2.1 (Obsolete) 
     By Android 
     Install path: extras/android/support 

我缺少的是與谷歌API的目標,以獲得Android模擬器工作?似乎我偶然發現的很多建議都是過時的。

回答

1

試試這個:

目標:在Android 6.0 - API等級23(或無 「谷歌的API」,在它的其他目標)

CPU/ABI:谷歌API的英特爾凌動(86)

相關問題