Android 不是抽象的,并且不重写ConnectionFailed(ConnectionResult)上的抽象方法
我想将Google登录模块添加到我的项目中。我检查了有关此错误的类似主题。我尝试了给出的解决方案,但对我的案例无效。 我在跟踪 错误日志: 错误:不是抽象的,并且不重写onConnectionFailedConnectionResult中OnConnectionFailedListener的抽象方法Android 不是抽象的,并且不重写ConnectionFailed(ConnectionResult)上的抽象方法,android,firebase,Android,Firebase,我想将Google登录模块添加到我的项目中。我检查了有关此错误的类似主题。我尝试了给出的解决方案,但对我的案例无效。 我在跟踪 错误日志: 错误:不是抽象的,并且不重写onConnectionFailedConnectionResult中OnConnectionFailedListener的抽象方法 错误:方法不重写或实现超类型中的方法,它只是一个输入错误。您需要重写onConnectionFailed而不是没有大写字母的onConnectionFailed 以下是文件:谢谢@kAliert m
错误:方法不重写或实现超类型中的方法,它只是一个输入错误。您需要重写onConnectionFailed而不是没有大写字母的onConnectionFailed
以下是文件:谢谢@kAliert
mGoogleApiClient = new GoogleApiClient.Builder(getApplicationContext())
.enableAutoManage(this, new GoogleApiClient.OnConnectionFailedListener(){
@Override
public void OnConnectionFailed(@NonNull ConnectionResult connectionResult) {
Toast.makeText(Login.this, "Something went wrong", Toast.LENGTH_SHORT).show();
}
})