Flutter GoogleSignIn java.lang.NoClassDefFoundError:无法解决以下问题:Landroidx / lifecycle / LifecycleEventObserver

时间:2019-12-10 00:34:53

标签: flutter firebase-authentication

尝试通过Firebase-auth使用GoogleSignIn和facebookSignIn在Flutter App中设置社交登录我收到此错误:

java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/lifecycle/LifecycleEventObserver

我正在使用那些软件包:

flutter_facebook_login: ^3.0.0
  google_sign_in: ^4.0.14
  firebase_auth: ^0.15.1

使用 flutter 1.9.1 +修补程序。6

1 个答案:

答案 0 :(得分:0)

删除应用程序的构建。对该代码进行分级:

for (int i = 0; i < tokens.length; i++) {
   String[] coordinates = tokens[i].replace("{", "").replace("}", "").split(",");

   int x = Integer.parseInt(coordinates[0].split("=")[1]);
   int y = Integer.parseInt(coordinates[1].split("=")[1]);

   moviments[i] = new Point(x, y);
}