简体   繁体   English

无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。 (一个信号)

[英]Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. (OneSignal)

I cloned the project and getting the above mentioned error.我克隆了项目并得到了上述错误。 The code was running okay but I suddenly getting these errors.代码运行正常,但我突然收到这些错误。

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 artifacts for com.onesignal:OneSignal:3.16.0: Skipped due to earlier error

I tried everything to resolve it, downloaded gradle files again, did "Flutter clean" and restarted android studio by invalidating caches but I do not understand why gradle sync started is failing to update them.我尽一切努力解决它,再次下载 gradle 文件,做了“Flutter clean”并通过使缓存无效重新启动 android studio 但我不明白为什么 gradle sync.start 无法更新它们I am using "gradle-5.4.1-all".我正在使用“gradle-5.4.1-all”。 Below is my build.gradle file.下面是我的 build.gradle 文件。

buildscript {
    repositories {
        google()
        jcenter()
        maven { url 'https://plugins.gradle.org/m2/' }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.3'
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.1, 0.99.99]'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

Can anybody help me to resolve these please?有人可以帮我解决这些问题吗? Thanks.谢谢。

This error was related to oneSignal Server.此错误与 oneSignal 服务器有关。 It was down.它倒下了。 Android Gradle download few dependencies if you close or restart your Android studio.如果您关闭或重新启动 Android 工作室,Android Gradle 下载一些依赖项。 Because server was down and dependencies were not downloaded therefore it started throwing an error.由于服务器已关闭并且未下载依赖项,因此它开始抛出错误。 Sometimes it is also due to internet connection.有时它也是由于互联网连接。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter 通知 OneSignal - 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter Notification OneSignal - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。[Flutter] - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.[Flutter] 错误:无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系 - Flutter - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' - Flutter 错误=>无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - Error=> Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' 无法确定任务 ':app:compileDebugJavaWithJavac' Flutter 的依赖关系 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac' Flutter 无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。 - 颤振问题 - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. - Flutter Issue 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。 在电容 android - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. in capacitor android Flutter 构建错误:无法确定任务':app:compileDebugJavaWithJavac的依赖关系 - Flutter Build Error:Could not determine the dependencies of task ':app:compileDebugJavaWithJavac flutter run 无法确定任务':app:compileDebugJavaWithJavac'的依赖关系 - flutter run Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM