简体   繁体   English

无法确定任务“:app:processDebugResources”的依赖关系

[英]Could not determine the dependencies of task ':app:processDebugResources'

I just finished installing flutter in my formatted laptop after I had an error about Local providerinstaller that I couldn't fix and then I ran an app which got stuck at running Running Gradle task 'assembleDebug' after that I then did gradlew clean build which after installing "Install Android SDK Platform 29 (revision: 5)" finished.我刚刚在格式化的笔记本电脑上安装了 flutter,此前我遇到了无法修复的本地 providerinstaller错误,然后我运行了一个应用程序,该应用程序卡在运行Running Gradle task 'assembleDebug'之后,然后我做了gradlew clean build之后安装"Install Android SDK Platform 29 (revision: 5)" finished. it threw an error saying它抛出了一个错误说

 What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve androidx.core:core:1.1.0.
     Required by:
         project :app > io.flutter:flutter_embedding_debug:1.0.0-ae90085a8437c0ae94d6b5ad2741739ebc742cb4 > androidx.fragment:fragment:1.1.0
      > Could not resolve androidx.core:core:1.1.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/core/core/1.1.0/core-1.1.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/core/core/1.1.0/core-1.1.0.pom'.
               > dl.google.com
   > Could not resolve androidx.collection:collection:1.1.0.
     Required by:
         project :app > io.flutter:flutter_embedding_debug:1.0.0-ae90085a8437c0ae94d6b5ad2741739ebc742cb4 > androidx.fragment:fragment:1.1.0
      > Could not resolve androidx.collection:collection:1.1.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/collection/collection/1.1.0/collection-1.1.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/collection/collection/1.1.0/collection-1.1.0.pom'.
               > dl.google.com
   > Could not resolve androidx.viewpager:viewpager:1.0.0.
     Required by:
         project :app > io.flutter:flutter_embedding_debug:1.0.0-ae90085a8437c0ae94d6b5ad2741739ebc742cb4 > androidx.fragment:fragment:1.1.0
      > Could not resolve androidx.viewpager:viewpager:1.0.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/viewpager/viewpager/1.0.0/viewpager-1.0.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/viewpager/viewpager/1.0.0/viewpager-1.0.0.pom'.
               > dl.google.com
   > Could not resolve androidx.loader:loader:1.0.0.
     Required by:
         project :app > io.flutter:flutter_embedding_debug:1.0.0-ae90085a8437c0ae94d6b5ad2741739ebc742cb4 > androidx.fragment:fragment:1.1.0
      > Could not resolve androidx.loader:loader:1.0.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/loader/loader/1.0.0/loader-1.0.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/loader/loader/1.0.0/loader-1.0.0.pom'.
               > dl.google.com
   > Could not resolve androidx.activity:activity:1.0.0.
     Required by:
         project :app > io.flutter:flutter_embedding_debug:1.0.0-ae90085a8437c0ae94d6b5ad2741739ebc742cb4 > androidx.fragment:fragment:1.1.0
      > Could not resolve androidx.activity:activity:1.0.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/activity/activity/1.0.0/activity-1.0.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/activity/activity/1.0.0/activity-1.0.0.pom'.
               > dl.google.com
   > Could not resolve androidx.lifecycle:lifecycle-viewmodel:2.0.0.
     Required by:
         project :app > io.flutter:flutter_embedding_debug:1.0.0-ae90085a8437c0ae94d6b5ad2741739ebc742cb4 > androidx.fragment:fragment:1.1.0
      > Could not resolve androidx.lifecycle:lifecycle-viewmodel:2.0.0.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.0.0/lifecycle-viewmodel-2.0.0.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/androidx/lifecycle/lifecycle-viewmodel/2.0.0/lifecycle-viewmodel-2.0.0.pom'.
               > dl.google.com
 Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
 Get more help at https://help.gradle.org
BUILD FAILED in 13m 54s
Exception: Gradle task assembleDebug failed with exit code 1

flutter doctor -v flutter 博士-v

D:\flutter\Project\ohms>flutter doctor -v
[√] Flutter (Channel stable, 1.22.5, on Microsoft Windows [Version 6.3.9600], locale en-GB)
    • Flutter version 1.22.5 at D:\flutter\Sdk\flutter
    • Framework revision 7891006299 (2 weeks ago), 2020-12-10 11:54:40 -0800
    • Engine revision ae90085a84
    • Dart version 2.10.4
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\bright\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
    • All Android licenses accepted.
[√] Android Studio (version 3.5)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 44.0.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.52.1)
    • VS Code at C:\Users\bright\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.18.0
[√] Connected device (1 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• No issues found!

please how do i go about this.请问我如何 go 关于这个。 Is there something am supposed to do有什么我应该做的吗

open Terminal => run "flutter clean" => problem solved!打开终端 => 运行“flutter clean” => 问题解决了!

暂无
暂无

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

相关问题 flutter 构建 apk 失败 - 无法确定任务“:app:processDebugResources”的依赖关系 - flutter build apk fails - Could not determine the dependencies of task ':app:processDebugResources' 无法确定任务 ':app:lintVitalRelease' 的依赖关系 - Could not determine the dependencies of task ':app:lintVitalRelease' 错误=>无法确定任务':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:preReleaseBuild'的依赖关系 - Could not determine the dependencies of task ':app:preReleaseBuild' 无法确定任务 ':app:compileDebugJavaWithJavac' 的依赖关系。 (一个信号) - Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. (OneSignal) 无法确定任务 ':app:mergeDebugAssets' 的依赖关系 - Could not determine the dependencies of task ':app:mergeDebugAssets' 无法确定任务 ':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
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM