Then I got a complier error when I tried to run the PushApplication
Error:(25, 23) error: TAG has private access in FragmentActivity
I tried to fixed this in MainActivity.java by adding a private static final String TAG = MainActivity.class.getSimpleName();
So I got the following error at application runtime: W/System: ClassLoader referenced unknown path: /data/app/com.push.pushapplication-1/lib/arm64 I/FirebaseInitProvider: FirebaseApp initialization unsuccessful I/InstantRun: starting instant run server: is main process W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable E/MainActivity: Default
FirebaseApp is not initialized in this process
com.push.pushapplication. Make sure to call
FirebaseApp.initializeApp(Context) first. java.lang.IllegalStateException:
Default FirebaseApp is not initialized in this process
com.push.pushapplication. Make sure to call FirebaseApp.initializeApp(Context) first. at com.google.firebase.FirebaseApp.getInstance(Unknown Source) at com.google.firebase.iid.FirebaseInstanceId.getInstance(Unknown Source) at org.jboss.aerogear.android.unifiedpush.fcm.AeroGearFCMPushRegistrar$2.get(AeroGearFCMPushRegistrar.java:100) at org.jboss.aerogear.android.unifiedpush.fcm.AeroGearFCMPushRegistrar$2.get(AeroGearFCMPushRegistrar.java:96) at org.jboss.aerogear.android.unifiedpush.fcm.AeroGearFCMPushRegistrar$4.doInBackground(AeroGearFCMPushRegistrar.java:145) at org.jboss.aerogear.android.unifiedpush.fcm.AeroGearFCMPushRegistrar$4.doInBackground(AeroGearFCMPushRegistrar.java:135) at android.os.AsyncTask$2.call(AsyncTask.java:305) at java.util.concurrent.FutureTask.run(FutureTask.java:237) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) at java.lang.Thread.run(Thread.java:761)
I could not find any workaroud. Any tip/solution wolcome?