【问题标题】:App-Auth Android Example Error in AuthState constructorAuthState 构造函数中的 App-Auth Android 示例错误
【发布时间】:2017-08-22 18:49:54
【问题描述】:

我正在使用来自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) 构造函数未定义。

该示例是否未针对库版本更新或是否有任何其他错误。

【问题讨论】:

  • 你能提供你使用的例子的链接吗?

标签: android appauth


【解决方案1】:

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

【讨论】:

  • 你能给我指出一个与 0.5.1 兼容的例子吗
  • 在 0.5.1 中,您可以构造一个不带参数的 AuthState:new AuthState()。
猜你喜欢
  • 2014-08-19
  • 2013-09-26
  • 2021-11-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多