auth0:解析com.auth0失败。android:锁定
我遵循auth0文档,创建了一个新项目,目标是Android 6,但第一步不起作用:auth0:解析com.auth0失败。android:锁定,android,android-gradle-plugin,build.gradle,auth0,Android,Android Gradle Plugin,Build.gradle,Auth0,我遵循auth0文档,创建了一个新项目,目标是Android 6,但第一步不起作用: compile 'com.auth0.android:lock:2.0.0' 导致 未能解析com.auth0。android:lock:2.0.0 同步gradle之后 我哪里做错了 如果你想让我在这里发布源代码。。。我没有写任何东西!我刚刚在gradle构建文件中写了一行,尝试使用编译'com.auth0.android:lock:2.0.0-beta.3' 或者只编译'com.auth0.android
compile 'com.auth0.android:lock:2.0.0'
导致
未能解析com.auth0。android:lock:2.0.0
同步gradle之后
我哪里做错了
如果你想让我在这里发布源代码。。。我没有写任何东西!我刚刚在gradle构建文件中写了一行,尝试使用
编译'com.auth0.android:lock:2.0.0-beta.3'
或者只
编译'com.auth0.android:lock:2.+'
对我来说,它在API 19设备上失败,在API 23上工作
更新:问题出在KitKat API中的矢量图形错误中。
使用更改默认标题图标有助于解决此问题
方法之一:
<style name="AppTheme.Lock.Theme" parent="Lock.Theme">
<item name="Auth0.HeaderLogo">@drawable/app_logo</item>
</style>
发布相关代码我还没有写任何代码:-),我刚刚写了一行compile'com.auth0.android:lock:1.16.+'The
auth0/lock.android
repo自述文件表明要使用库添加以下行:compile'com.auth0.android:lock:1.16.+'
-你在哪里找到对2.0.0和新beta4的任何引用?他们删除了'withTheme()'调用。您知道在这些更改后如何更改徽标/标题吗?
<activity
android:name="com.auth0.android.lock.LockActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.Lock.Theme">
//here is your header logo res
int headerLogo = R.drawable.app_logo;
Theme theme = Theme.newBuilder()
.withHeaderLogo(headerLogo)
.build();
this.lock = Lock.newBuilder(auth0, callback)
.withTheme(theme)
.build();