为 Android 升级 Firebase 后无法找到签名 (Lorg/shaded/apache/log4j/Logger;) 中引用的 class

unable to find class referenced in signature (Lorg/shaded/apache/log4j/Logger;) after upgrading Firebase for Android

当我保存到 Firebase 数据存储时,出现以下错误,但在登录和授权部分中的电子邮件和密码注册没有问题。我正在使用 Java、Android。我已经花了 3 个小时但无法解决问题(也许是新的 firebase android 更新?)。

这是 email/pass 有效的证据:

            Firebase f = new Firebase("https://myapp.firebaseio.com/"); 
            Firebase userData = f.child("User");
            //save into login&auth of email and password SUCCESS
            userData.createUser(emailAddr.getText().toString(), passwd.getText().toString(), new Firebase.ValueResultHandler<Map<String, Object>>() {
                @Override
                public void onSuccess(Map<String, Object> result) {
                    System.out.println("Successfully created user account with uid: " + result.get("uid"));
                }
                @Override
                public void onError(FirebaseError firebaseError) {
                    // there was an error
                }
            });

            Firebase set_user = userData.push();
            String user_id = set_user.getKey();
            //save into database FAILED
            Map<String, Object> save_user = new HashMap<String, Object>();
            save_user.put("disp_name", dispName.getText().toString());
            save_user.put("real_name", rl_name.getText().toString());
            save_user.put("email_addr", emailAddr.getText().toString());
            save_user.put("user_pwd", passwd.getText().toString());
            save_user.put("id",user_id);
            set_user.setValue(save_user);

以下是我从 运行 上面的代码中得到的错误。

VFY: unable to find class referenced in signature (Lorg/shaded/apache/log4j/Logger;)

VFY: unable to resolve virtual method 26177: Lorg/shaded/apache/log4j/Category;.log (Ljava/lang/String;Lorg/shaded/apache/log4j/Priority;Ljava/lang/Object;Ljava/lang/Throwable;)V

Could not find method org.shaded.apache.log4j.Category.log, referenced from method org.shaded.apache.commons.logging.impl.Log4JLogger.trace

VFY: unable to resolve static field 9561 (WARN) in Lorg/shaded/apache/log4j/Priority;

这些警告来自 Apache httpclient 库的阴影版本,Firebase 包含并且仅影响默认情况下禁用的日志记录。它们是由不与阴影一起工作的反射引起的。但是,它们不应阻止 Firebase 库正常工作,您现在可以忽略这些警告。