2017-05-18 11 views
1

私のXamarin.Androidアプリケーションは常にFirebaseで正常に動作しました。今私は、デバイス固有のfirebaseトークンを "注文"しようとすると、どこからも次の例外があります。Firebaseの例外がどこからも取得されない

例外メッセージは、次のとおりです。

デフォルトFirebaseAppは、このプロセス de.myapplication.androidでは初期化されません。まず FirebaseApp.initializeApp(Context)に電話してください。

私は前にこの呼び出しを必要としませんが、私は例外が私に言った何をした:

protected override void OnCreate(Bundle bundle) 
{ 
    FirebaseApp.InitializeApp(this); 

    TabLayoutResource = Resource.Layout.Tabbar; 
    ToolbarResource = Resource.Layout.Toolbar; 

    var msgListenerIntent = new Intent(this, typeof(MyFirebaseMessagingService)); 
    StartService(msgListenerIntent); 

    base.OnCreate(bundle); 

    global::Xamarin.Forms.Forms.Init(this, bundle); 
    LoadApplication(new App()); 
} 

initalizing方法で問題が変更されません呼び出します。ここ数週間、トークンを注文することは完全にうまくいった。

注:時々、Visual StudioがResourceDesigner.csファイルを変更したいです。それは、Visual Studioは、それらの行を削除したいという私のためのヒントだろ

// aapt resource value: 0x7f080051 
public const int default_web_client_id = 2131230801; 

// aapt resource value: 0x7f080052 
public const int firebase_database_url = 2131230802; 

// aapt resource value: 0x7f08004f 
public const int gcm_defaultSenderId = 2131230799; 

// aapt resource value: 0x7f080053 
public const int google_api_key = 2131230803; 

// aapt resource value: 0x7f080050 
public const int google_app_id = 2131230800; 

// aapt resource value: 0x7f080054 
public const int google_crash_reporting_api_key = 2131230804; 

// aapt resource value: 0x7f080055 
public const int google_storage_bucket = 2131230805; 

:それは、次の行を削除したいですか?

答えて

関連する問題