{"action":"opened","issue":{"url":"https://api.github.com/repos/firebase/quickstart-android/issues/24","repository_url":"https://api.github.com/repos/firebase/quickstart-android","labels_url":"https://api.github.com/repos/firebase/quickstart-android/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/firebase/quickstart-android/issues/24/comments","events_url":"https://api.github.com/repos/firebase/quickstart-android/issues/24/events","html_url":"https://github.com/firebase/quickstart-android/issues/24","id":156979231,"number":24,"title":" Firebase API initialization failure.","user":{"login":"iboylmz","id":5227444,"avatar_url":"https://avatars.githubusercontent.com/u/5227444?v=3","gravatar_id":"","url":"https://api.github.com/users/iboylmz","html_url":"https://github.com/iboylmz","followers_url":"https://api.github.com/users/iboylmz/followers","following_url":"https://api.github.com/users/iboylmz/following{/other_user}","gists_url":"https://api.github.com/users/iboylmz/gists{/gist_id}","starred_url":"https://api.github.com/users/iboylmz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iboylmz/subscriptions","organizations_url":"https://api.github.com/users/iboylmz/orgs","repos_url":"https://api.github.com/users/iboylmz/repos","events_url":"https://api.github.com/users/iboylmz/events{/privacy}","received_events_url":"https://api.github.com/users/iboylmz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-26T13:06:41Z","updated_at":"2016-05-26T13:06:41Z","closed_at":null,"body":"Hi,\r\n\r\n\r\n        FirebaseMessaging.getInstance().subscribeToTopic(\"global\");\r\n\r\nthis line causing en error:\r\n\r\n\r\n`05-26 15:52:42.551 11612-11612/com.lotram.uygulamacoapp A/FirebaseApp: Firebase API initialization failure.\r\n                                                                       java.lang.reflect.InvocationTargetException\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                           at com.google.firebase.FirebaseApp.zza(Unknown Source)\r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)\r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)\r\n                                                                           at com.google.firebase.FirebaseApp.zzbu(Unknown Source)\r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)\r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1714)\r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1683)\r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)\r\n                                                                           at android.app.ActivityThread.installProvider(ActivityThread.java:5012)\r\n                                                                           at android.app.ActivityThread.installContentProviders(ActivityThread.java:4607)\r\n                                                                           at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4547)\r\n                                                                           at android.app.ActivityThread.access$1500(ActivityThread.java:148)\r\n                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n                                                                           at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                           at android.os.Looper.loop(Looper.java:135)\r\n                                                                           at android.app.ActivityThread.main(ActivityThread.java:5272)\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)\r\n                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)\r\n                                                                        Caused by: java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)\r\n                                                                           at com.google.firebase.iid.zzg.zzeC(Unknown Source)\r\n                                                                           at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                           at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                           at com.google.firebase.iid.zzd.zzb(Unknown Source)\r\n                                                                           at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                           at com.google.firebase.FirebaseApp.zza(Unknown Source) \r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source) \r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source) \r\n                                                                           at com.google.firebase.FirebaseApp.zzbu(Unknown Source) \r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source) \r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1714) \r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1683) \r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) \r\n                                                                           at android.app.ActivityThread.installProvider(ActivityThread.java:5012) \r\n                                                                           at android.app.ActivityThread.installContentProviders(ActivityThread.java:4607) \r\n                                                                           at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4547) \r\n                                                                           at android.app.ActivityThread.access$1500(ActivityThread.java:148) \r\n                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) \r\n                                                                           at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                                           at android.os.Looper.loop(Looper.java:135) \r\n                                                                           at android.app.ActivityThread.main(ActivityThread.java:5272) \r\n                                                                           at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909) \r\n                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704) \r\n05-26 15:52:43.401 11612-11612/com.lotram.uygulamacoapp E/ApkAssets: Error while loading asset assets/icudtl.dat: java.io.FileNotFoundException: assets/icudtl.dat\r\n05-26 15:52:44.017 11612-11612/com.lotram.uygulamacoapp E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                          Process: com.lotram.uygulamacoapp, PID: 11612\r\n                                                                          java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)\r\n                                                                              at com.google.firebase.iid.zzg.zzeC(Unknown Source)\r\n                                                                              at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                              at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                              at com.google.firebase.iid.zzd.zzb(Unknown Source)\r\n                                                                              at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)\r\n                                                                              at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)\r\n                                                                              at com.google.firebase.messaging.FirebaseMessaging.getInstance(Unknown Source)\r\n                                                                              at com.lotram.uygulamacoapp.MainActivity.onCreate(MainActivity.java:51)\r\n                                                                              at android.app.Activity.performCreate(Activity.java:5977)\r\n                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)\r\n                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)\r\n                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)\r\n                                                                              at android.app.ActivityThread.access$800(ActivityThread.java:148)\r\n                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)\r\n                                                                              at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                              at android.os.Looper.loop(Looper.java:135)\r\n                                                                              at android.app.ActivityThread.main(ActivityThread.java:5272)\r\n                                                                              at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                              at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)\r\n                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)\r\n05-26 15:59:59.507 17613-17613/com.lotram.uygulamacoapp A/FirebaseApp: Firebase API initialization failure.\r\n                                                                       java.lang.reflect.InvocationTargetException\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                           at com.google.firebase.FirebaseApp.zza(Unknown Source)\r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)\r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source)\r\n                                                                           at com.google.firebase.FirebaseApp.zzbu(Unknown Source)\r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source)\r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1714)\r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1683)\r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source)\r\n                                                                           at android.app.ActivityThread.installProvider(ActivityThread.java:5012)\r\n                                                                           at android.app.ActivityThread.installContentProviders(ActivityThread.java:4607)\r\n                                                                           at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4547)\r\n                                                                           at android.app.ActivityThread.access$1500(ActivityThread.java:148)\r\n                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n                                                                           at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                           at android.os.Looper.loop(Looper.java:135)\r\n                                                                           at android.app.ActivityThread.main(ActivityThread.java:5272)\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)\r\n                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)\r\n                                                                        Caused by: java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)\r\n                                                                           at com.google.firebase.iid.zzg.zzeC(Unknown Source)\r\n                                                                           at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                           at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                           at com.google.firebase.iid.zzd.zzb(Unknown Source)\r\n                                                                           at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)\r\n                                                                           at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                           at com.google.firebase.FirebaseApp.zza(Unknown Source) \r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source) \r\n                                                                           at com.google.firebase.FirebaseApp.initializeApp(Unknown Source) \r\n                                                                           at com.google.firebase.FirebaseApp.zzbu(Unknown Source) \r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source) \r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1714) \r\n                                                                           at android.content.ContentProvider.attachInfo(ContentProvider.java:1683) \r\n                                                                           at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source) \r\n                                                                           at android.app.ActivityThread.installProvider(ActivityThread.java:5012) \r\n                                                                           at android.app.ActivityThread.installContentProviders(ActivityThread.java:4607) \r\n                                                                           at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4547) \r\n                                                                           at android.app.ActivityThread.access$1500(ActivityThread.java:148) \r\n                                                                           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) \r\n                                                                           at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                                           at android.os.Looper.loop(Looper.java:135) \r\n                                                                           at android.app.ActivityThread.main(ActivityThread.java:5272) \r\n                                                                           at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                           at java.lang.reflect.Method.invoke(Method.java:372) \r\n                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909) \r\n                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704) \r\n05-26 16:00:00.275 17613-17613/com.lotram.uygulamacoapp E/ApkAssets: Error while loading asset assets/icudtl.dat: java.io.FileNotFoundException: assets/icudtl.dat\r\n05-26 16:00:00.694 17613-17613/com.lotram.uygulamacoapp E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                          Process: com.lotram.uygulamacoapp, PID: 17613\r\n                                                                          java.lang.IncompatibleClassChangeError: The method 'java.io.File android.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context)' was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)\r\n                                                                              at com.google.firebase.iid.zzg.zzeC(Unknown Source)\r\n                                                                              at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                              at com.google.firebase.iid.zzg.<init>(Unknown Source)\r\n                                                                              at com.google.firebase.iid.zzd.zzb(Unknown Source)\r\n                                                                              at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)\r\n                                                                              at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source)\r\n                                                                              at com.google.firebase.messaging.FirebaseMessaging.getInstance(Unknown Source)\r\n                                                                              at com.lotram.uygulamacoapp.MainActivity.onCreate(MainActivity.java:64)\r\n                                                                              at android.app.Activity.performCreate(Activity.java:5977)\r\n                                                                              at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)\r\n                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2258)\r\n                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2365)\r\n                                                                              at android.app.ActivityThread.access$800(ActivityThread.java:148)\r\n                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1283)\r\n                                                                              at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                              at android.os.Looper.loop(Looper.java:135)\r\n                                                                              at android.app.ActivityThread.main(ActivityThread.java:5272)\r\n                                                                              at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                              at java.lang.reflect.Method.invoke(Method.java:372)\r\n                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:909)\r\n                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:704)`\r\n\r\n\r\n**my app/build.gradle**\r\n\r\n`apply plugin: 'com.android.application'\r\n\r\nandroid {\r\n    compileSdkVersion 23\r\n    buildToolsVersion \"23.0.3\"\r\n\r\n    defaultConfig {\r\n        applicationId \"com.lotram.uygulamacoapp\"\r\n        minSdkVersion 15\r\n        targetSdkVersion 23\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n    }\r\n    buildTypes {\r\n        release {\r\n            minifyEnabled false\r\n            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'\r\n        }\r\n    }\r\n}\r\n\r\nrepositories {\r\n    maven {\r\n        url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2'\r\n    }\r\n}\r\n\r\ndependencies {\r\n    compile fileTree(dir: 'libs', include: ['*.jar'])\r\n    testCompile 'junit:junit:4.12'\r\n    compile 'com.android.support:appcompat-v7:23.2.1'\r\n    compile 'com.android.support:design:23.2.1'\r\n    compile 'org.xwalk:xwalk_core_library:17.46.448.10'\r\n    compile 'com.loopj.android:android-async-http:1.4.9'\r\n    compile 'org.apache.commons:commons-io:1.3.2'\r\n\r\n    compile 'com.google.firebase:firebase-messaging:9.0.0'\r\n}\r\n\r\napply plugin: 'com.google.gms.google-services'`\r\n\r\n\r\n**and my project/build.gradle**\r\n\r\n`// Top-level build file where you can add configuration options common to all sub-projects/modules.\r\n\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:2.1.0'\r\n        classpath 'com.google.gms:google-services:3.0.0'\r\n\r\n        // NOTE: Do not place your application dependencies here; they belong\r\n        // in the individual module build.gradle files\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n}\r\n\r\ntask clean(type: Delete) {\r\n    delete rootProject.buildDir\r\n}`\r\n\r\n"}}
{"actor":{"display_login":"iboylmz"}}