--> -->
googleのapp_stateを使おうとしてたんですが、どうも起動時にfatalなexceptionが出てしまいます。
java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
Manifestの記述はこんな感じ。
1 2 3 |
|
(一部伏せ字)
LogCatの出力をfilterせずによく見てみると、こんなエラーが出ていました。
Application ID (4240*******2-qf21r4bncindpiv.....) must be a numeric value. Please verify that your manifest refers to the correct project ID.
どうやらapp_idは数字部分のみで良いようです。そこで以下のようにしてみると、
1 2 3 |
|
またエラー。
com.google.android.gms.appstate.APP_ID expected String but value was a java.lang.Integer. The default value <null> was returned.
今度はAPIから、文字じゃなきゃダメと怒られます。
どないせいっちゅうねん。
なんて言ってみても始まらないので、どうすればいいかというと、
1 2 3 |
|
としてstring指定にし、strings.xmlに以下のように指定しておきます。
1 |
|
こんな事のためにかなり無駄な時間を使いました・・・。