【发布时间】:2016-06-28 00:03:29
【问题描述】:
当我添加 compile 'com.google.firebase:firebase-server-sdk:[3.0.0,)' 以添加 firebase 自定义输出时,我的应用程序运行正常
此代码中的错误有效,
public void onCreate(){
super.onCreate();
if (!FirebaseApp.getApps(this).isEmpty()) {
FirebaseDatabase.getInstance().setPersistenceEnabled(true);
}
}
}
Error:(23, 25) error: method getApps in class FirebaseApp cannot be applied to given types;
required: no arguments
found: Application
reason: actual and formal argument lists differ in length............,
还有这个警告。
org.apache.httpcomponents:httpclient:4.0.1 is ignored for release as it may be conflicting with the internal version provided by Android.
In case of problem, please repackage it with jarjar to change the class packages
【问题讨论】:
标签: android firebase firebase-realtime-database firebase-authentication