我尝试运行一个测试类,并在下面发现了这个构建错误。它仅在尝试运行测试时出现,而不是在构建和运行应用程序时出现。对如何解决这个问题有什么建议吗?我根本没有在我的应用程序中使用kotlin。 org.gradle.api.internal.tasks.TaskDependencyResolveException: Could not determine the dependencies of task ':app:preDebugAndroidTestBuild'.
at org.gradle.api.internal.tasks.CachingTaskDependenc
我正在将我android项目gradle 5.4.1-all升级到6.5-bin,并将构建工具4.0.0升级到4.1.0,然后我得到了这样的错误 Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not create task ':app:minifyReleaseWithR8'.
Cannot query the value of this provider because it has no value available.
我得到了以下错误,在一个新的android项目上,有2个模块,只有5-6个新的类。
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find org.projectlombok:lombok:.
Required by:
project :app
Possible solut
在将ExpoKit项目从SDK32更新到SDK33之后,我在Android项目中得到了一堆错误。
我遵循官方指南更新了
下面是我得到的错误:
ERROR: Manifest merger failed : Attribute data@scheme at manifestMerger6401876400338623003.xml requires a placeholder substitution but no value for <appAuthRedirectScheme> is provided.
Could not determine the dependencie
我做了一个登录和注册活跃与Firebase。当我启动应用程序时,我会得到很多例外。我认为这不是因为语法,而是由于配置。
注册
class RegistrationActivity : AppCompatActivity() {
private lateinit var auth: FirebaseAuth
//Email und Passwort Eingabefelder
val regEmail: EditText = findViewById(R.id.registration_email)
val regPassword: EditText = f
我克隆了这个项目并得到了上面提到的错误。代码运行正常,但我突然发现了这些错误。
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not determine a
嘿,伙计们,我正在捡一个旧的颤音项目。有些用户要求提供新的功能,我想实现它们。我已经尝试过更新flutter和我的依赖项,但是同样的错误不断出现。
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugCompileClassp
在升级到最新的AndroidX libs & Android Gradle插件后,当我在我的项目上运行lint时,lint构建失败了。 这一切都始于最新的Android Gradle插件,它在构建我的项目时抱怨程序类型已经present:com.google.common.util.concurrent.ListenableFuture 以下是错误: FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lint'.
> Could
我正在尝试添加一个依赖的Android异步Http客户端到我的项目中。因此,项目中有两个build.gradle文件。
据我所知,有不同类型的依赖关系:
在(Project:My-app)One (Project:My-app)Another的构建脚本内的根级别上定义的build.gradle模块是build.gradle (模块:应用程序)
是关于buildScript的依赖关系的存储库,解释一下前两种类型。
build.gradle (项目:My-app)也说
// NOTE: Do not place your application dependencies here; th
这是构建gradle时的错误。
[![Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.pierfrancescosoffritti.androidyoutubeplayer:core:10.0.5.
Searched in the following locations:
我的android项目中有很多lib,我想知道它们是从哪里来的。
我使用了命令行: gradlew :app:dependencyInsight configuration,中提到的编译依赖
如上图所示,尝试找到回收视图库。
gradlew :app:dependencyInsight -配置编译-依赖回收视图
但什么也找不到:
Task :app:dependencyInsight
No dependencies matching given input were found in configuration ':app:compile'
BUILD SU
我添加了地理定位器依赖,然后我得到了一个android x不兼容的错误。有什么能帮我摆脱这个的吗?
Launching lib\main.dart on Android SDK built for x86 in debug mode...
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencie
我似乎无法在Android Studio 3.0.1上为我的应用程序构建gradle (生成apk作品)。下面是构建输出。
Error:FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:preDebugAndroidTestBuild'.
> Conflict with dependency 'com.google.firebase:firebase-messaging' in project ':app'
我正在尝试导入,这是一个github项目,在我尝试的project.What中作为库,如下所示:
在我的根目录中创建了一个名为'libs‘的文件夹
- copied the complete folder 'library' of the Standout project on git into 'libs'
- renamed the folder 'library' that i just copied to e.g. "standout" (just to avoid confusion)
- now
我正在跟随学习如何使用Android Studio创建安卓应用程序。在最后,用户打开文件'build.gradle‘,它看起来与我的文件完全不同:
// Top-level build file where you can add configuration options common to
all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.bu
我对Gradle非常陌生(我过去一直使用Maven )。
我必须将这种依赖添加到Android项目中:
因此,在阅读库文档时,它只说使用Gradle我必须添加这个依赖项:
https://github.com/nostra13/Android-Universal-Image-Loader/wiki/Quick-Setup
我的问题是,在我的项目中,我有两个不同的build.gradle文件:
1) build.gradle指的是该项目:
// Top-level build file where you can add configuration options common to all s
我希望能够离线处理我的项目。所以我禁用了离线模式,按下“与gradle文件同步项目”按钮,然后启用离线模式并尝试构建。然而,每次我这样做时,我都会得到错误:
FAILURE: Build failed with an exception.
*What went wrong:
Could not determine the dependencies of task ':app:compileDebugRenderscript'.
> Could not resolve all task dependencies for configuration ':app