我正在開發Xamarin跨平臺應用程序,其中使用了Google Cloud Messaging服務。所以當我在下面的方法調用時,我得到異常「設備沒有包com.google.android.gsf」。 我試圖在Visual Studio Android Emulator(MarshMallow Android 6.0 -API 23)和(Lollipop Android 5.1-API 22)上運行這個項目。設備沒有包com.google.android.gsf(Visual Studio Android模擬器)
那麼如何解決這個問題。提前致謝。
try {
GcmClient.CheckDevice(this);
GcmClient.CheckManifest(this);
// Register for push notifications
Log.Info("MainActivity", "Registering...");
GcmClient.Register(this, Constants.SenderID);
}
catch(Exception ex)
{
}
如果您在拖放時遇到問題,請確保您沒有使用提升的權限運行模擬器。 – nhwilly