App-Auth Android AuthState 构造函数中的示例错误

App-Auth Android Example Error in AuthState constructor

我正在使用来自 this github repository

的 AppAuth-Android 示例

我使用的gradle配置是

compile 'net.openid:appauth:0.5.1'

抛出的错误是针对以下几行:

AuthorizationServiceConfiguration config = new AuthorizationServiceConfiguration(
        mConfiguration.getAuthEndpointUri(),
        mConfiguration.getTokenEndpointUri(),
        mConfiguration.getRegistrationEndpointUri());

mAuthStateManager.replace(new AuthState(config));

错误指出 AuthState(AuthorizationServiceConfiguration) 构造函数未定义。

示例库版本没有更新还是有其他错误。

这里是 AppAuth 的主要维护者 - 我相信我在 0.5.1 发布后添加了该方法,您需要等待 0.6.0 发布才能使用它。