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

时间:2017-03-29 10:23:39

标签: android appauth

我正在使用

中的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)构造函数未定义。

示例是否未针对库版本更新,或者是否存在任何其他错误。

1 个答案:

答案 0 :(得分:1)

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