@Override
public void onActivityResult((int requestCode,int resultCode,Intent data))
{
super.onActivityResult(requestCode, resultCode, data);
fb.authorizeCallback(requestCode, resultCode, data);
}
我实际从网上拿了上面的代码然后放了但是得到的错误是这样的:
此行有多个标记:
答案 0 :(得分:1)
删除额外的括号:
public void onActivityResult((int requestCode,int resultCode,Intent data))
试试这个:
public void onActivityResult(int requestCode, int resultCode, Intent data)
答案 1 :(得分:1)
您的方法签名中有一组额外的括号。尝试使用:
@Override
protected void onActivityResult(int requestCode,int resultCode,Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
fb.authorizeCallback(requestCode, resultCode, data);
}
答案 2 :(得分:1)
这一行:
public void onActivityResult((int requestCode,int resultCode,Intent data))
应该是:
public void onActivityResult(int requestCode,int resultCode,Intent data)
请注意删除方法参数周围的第二组括号。
答案 3 :(得分:1)
参数规范的括号是多余的。尝试:
@Override
public void onActivityResult(int requestCode,int resultCode,Intent data)
{
super.onActivityResult(requestCode, resultCode, data);
fb.authorizeCallback(requestCode, resultCode, data);
}
如果仍然遇到语法错误,粘贴整个Activity类的源代码会很有帮助。