尝试通过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
答案 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);
}