【发布时间】:2018-09-13 00:01:09
【问题描述】:
我正在使用 Auth0 和 Android。我的目的是检索有关用户的更多信息,而不是电子邮件和姓名,例如用户的生日。但我不能这样做,即使是任何其他文件 当我记录 userProfile 对象时;我有我喜欢的所有信息。但是当我喜欢在 textView 中显示生日时;我收到了这个错误
error: cannot find symbol method getGender()
这就是我编写简单代码的方式:
birthdayTextView.setText(String.format(getString(R.string.birthday), userProfile.getGender()));
【问题讨论】:
-
看起来编译器抱怨它找不到名为 getGender() 的方法 - 显示生日时是否有理由调用性别?
标签: java android facebook-graph-api auth0