gpt4 book ai didi

android - Auth0 gradle 依赖错误

转载 作者:太空狗 更新时间:2023-10-29 16:27:36 27 4
gpt4 key购买 nike

我正在尝试在我的项目中使用 Auth0,当我尝试将其包含在 build.gradle 文件中时,出现错误。我尝试添加以下内容:

编译 'com.auth0.android:auth0:1.10.0'

编译 'com.auth0.android:auth0:1.+'

我收到以下错误:

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed with multiple errors, see logs

我运行了 gradlew build --stacktrace 并得到了这个:

14:31:51.285 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
14:31:51.285 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:processDebugManifest'.
14:31:51.285 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Manifest merger failed with multiple errors, see logs
14:31:51.285 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
14:31:51.285 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
14:31:51.285 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
14:31:51.285 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
14:31:51.286 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED
14:31:51.286 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger]
14:31:51.286 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 3.378 secs

我做错了什么?

更新

打开 AndroidManifest.xml 并在 Merged Manifest 中找到此消息

Merging Errors: Error: Attribute data@host at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Domain> is provided. app main manifest (this file) Error: Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Scheme> is provided. app main manifest (this file)

最佳答案

在这里回答我自己的问题:合并 list 有错误

Attribute data@host at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Domain> is provided. app main manifest (this file) Error: Attribute data@scheme at AndroidManifest.xml requires a placeholder substitution but no value for <auth0Scheme> is provided. app main manifest (this file)

基本上是说 auth0Domainauth0Scheme 需要声明值。

我需要输入行

manifestPlaceholders = [auth0Domain: "@string/com_auth0_domain", auth0Scheme: "demo"]

build.gradle 文件中,然后编译就好了。

在确定您被卡住之前,基本上按照说明进行操作,those instructions were here .

关于android - Auth0 gradle 依赖错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46228662/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com