Project configuration is not up-to-date with pom.x

本文详细介绍了在使用Maven时遇到项目配置与pom.xml文件不一致导致的错误,并提供了通过右击项目选择Maven Update Project来解决此问题的步骤。该教程对于Maven初学者和遇到类似问题的开发者具有实用价值。

在使用Maven的时候,经常会出现这样的错误。

Project configuration is not up-to-date with pom.xml. Run Maven->Update Project or use Quick Fix.

解决方法

  1. 右击项目 选择Maven Update Project

  2. 112706_ak3A_263874.jpg

  3. 112610_ybHj_263874.jpg

转载于:https://my.oschina.net/u/263874/blog/483818

Description Resource Path Location Type An error occurred while filtering resources TaskManagerWeb line 1 Maven Java EE Configuration Problem CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-compiler-plugin:jar:3.8.1 -> org.apache.maven:maven-plugin-api:jar:3.0 -> org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2 -> org.codehaus.plexus:plexus-component-annotations:jar:1.7.1: ArtifactDescriptorException: Failed to read artifact descriptor for org.codehaus.plexus:plexus-component-annotations:jar:1.7.1: UnresolvableModelException: Failure to transfer org.sonatype.forge:forge-parent:pom:10 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.sonatype.forge:forge-parent:pom:10 from/to central (https://repo.maven.apache.org/maven2): No connector factories available pom.xml /TaskManagerWeb line 63 Maven Project Build Lifecycle Mapping Problem CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.8.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-core:jar:3.0, org.apache.maven:maven-settings:jar:3.0, org.apache.maven:maven-settings-builder:jar:3.0, org.apache.maven:maven-repository-metadata:jar:3.0, org.apache.maven:maven-model-builder:jar:3.0, org.apache.maven:maven-aether-provider:jar:3.0, org.sonatype.aether:aether-impl:jar:1.7, org.sonatype.aether:aether-spi:jar:1.7, org.sonatype.aether:aether-api:jar:1.7, org.sonatype.aether:aether-util:jar:1.7, org.codehaus.plexus:plexus-interpolation:jar:1.14, org.codehaus.plexus:plexus-classworlds:jar:2.2.3, org.codehaus.plexus:plexus-component-annotations:jar:1.7.1, org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3, org.sonatype.plexus:plexus-cipher:jar:1.4, org.apache.maven.shared:maven-shared-utils:jar:3.2.1, commons-io:commons-io:jar:2.5, org.apache.maven.shared:maven-shared-incremental:jar:1.1, org.codehaus.plexus:plexus-java:jar:0.9.10, org.codehaus.plexus:plexus-compiler-api:jar:2.8.4, org.codehaus.plexus:plexus-compiler-manager:jar:2.8.4, org.codehaus.plexus:plexus-compiler-javac:jar:2.8.4: Failure to transfer org.apache.maven:maven-core:jar:3.0 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven:maven-core:jar:3.0 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /TaskManagerWeb line 63 Maven Project Build Lifecycle Mapping Problem Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (execution: default-compile, phase: compile) pom.xml /TaskManagerWeb line 63 Maven Project Build Lifecycle Mapping Problem Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (execution: default-testCompile, phase: test-compile) pom.xml /TaskManagerWeb line 63 Maven Project Build Lifecycle Mapping Problem Project configuration is not up-to-date with pom.xml. Select: Maven->Update Project... from the project context menu or use Quick Fix. TaskManagerWeb line 1 Maven Configuration Problem Project configurator "com.genuitec.eclipse.maven.wtp.hibernate.configurator.wtp" required by plugin execution "org.apache.maven.plugins:maven-war-plugin:3.2.3:war (execution: default-war, phase: package)" is not available. To enable full functionality, install the project configurator and run Maven->Update Project Configuration. pom.xml /TaskManagerWeb line 71 Maven Project Build Lifecycle Mapping Problem Project configurator "com.genuitec.eclipse.maven.wtp.spring.configurator.wtp" required by plugin execution "org.apache.maven.plugins:maven-war-plugin:3.2.3:war (execution: default-war, phase: package)" is not available. To enable full functionality, install the project configurator and run Maven->Update Project Configuration. pom.xml /TaskManagerWeb line 71 Maven Project Build Lifecycle Mapping Problem Unhandled exception type SQLException TaskController.java /TaskManagerWeb/src/main/java/com/taskmanager/controller line 57 Java Problem Unhandled exception type SQLException TaskController.java /TaskManagerWeb/src/main/java/com/taskmanager/controller line 69 Java Problem Unhandled exception type SQLException TaskController.java /TaskManagerWeb/src/main/java/com/taskmanager/controller line 80 Java Problem Unhan
05-30
> react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 1715 file(s) to forward-jetify. Using 12 workers... info JS server already running. info Installing the app... Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.4/userguide/command_line_interface.html#sec:command_line_warnings 6 actionable tasks: 6 up-to-date FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':jcore-react-native'. > Could not determine the dependencies of null. > Could not resolve all task dependencies for configuration ':jcore-react-native:classpath'. > Could not find com.android.tools.build:gradle:2.2.3. Searched in the following locations: - https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration. Required by: project :jcore-react-native * 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 17s error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project ':jcore-react-native'. > Could not determine the dependencies of null. > Could not resolve all task dependencies for configuration ':jcore-react-native:classpath'. > Could not find com.android.tools.build:gradle:2.2.3. Searched in the following locations: - https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration. Required by: project :jcore-react-native * 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 17s at makeError (D:\AwesomeProject\node_modules\execa\index.js:174:9) at D:\AwesomeProject\node_modules\execa\index.js:278:16 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async runOnAllDevices (D:\AwesomeProject\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5) at async Command.handleAction (D:\AwesomeProject\node_modules\@react-native-community\cli\build\index.js:192:9) info Run CLI with --verbose flag for more details.
最新发布
08-09
Executing tasks: [:app:clean, :app:assembleDebug, :app:assembleDebugUnitTest, :app:assembleDebugAndroidTest] in project C:\Users\dsyde\IdeaProjects\HealthApp > Configure project : Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle.kts' Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'build.gradle.kts' Build was configured to prefer settings repositories over project repositories but repository 'Google' was added by build file 'build.gradle.kts' Build was configured to prefer settings repositories over project repositories but repository 'MavenRepo' was added by build file 'build.gradle.kts' > Task :app:clean UP-TO-DATE > Task :app:preBuild UP-TO-DATE > Task :app:preDebugBuild UP-TO-DATE > Task :app:mergeDebugNativeDebugMetadata NO-SOURCE > Task :app:checkKotlinGradlePluginConfigurationErrors > Task :app:checkDebugAarMetadata FAILED > Task :app:generateDebugResValues > Task :app:mapDebugSourceSetPaths FAILED > Task :app:generateDebugResources > Task :app:mergeDebugResources FAILED > Task :app:packageDebugResources > Task :app:createDebugCompatibleScreenManifests > Task :app:extractDeepLinksDebug > Task :app:processDebugMainManifest FAILED > Task :app:javaPreCompileDebug > Task :app:mergeDebugShaders > Task :app:compileDebugShaders NO-SOURCE > Task :app:generateDebugAssets UP-TO-DATE > Task :app:mergeDebugAssets FAILED > Task :app:desugarDebugFileDependencies FAILED > Task :app:checkDebugDuplicateClasses FAILED > Task :app:mergeDebugJniLibFolders > Task :app:parseDebugLocalResources > Task :app:mergeDebugNativeLibs FAILED > Task :app:validateSigningDebug > Task :app:writeDebugAppMetadata > Task :app:writeDebugSigningConfigVersions > Task :app:preDebugUnitTestBuild UP-TO-DATE > Task :app:preDebugAndroidTestBuild SKIPPED > Task :app:javaPreCompileDebugUnitTest > Task :app:checkDebugAndroidTestAarMetadata FAILED > Task :app:generateDebugAndroidTestResValues > Task :app:mapDebugAndroidTestSourceSetPaths > Task :app:generateDebugAndroidTestResources > Task :app:mergeDebugAndroidTestResources > Task :app:processDebugAndroidTestManifest FAILED > Task :app:javaPreCompileDebugAndroidTest > Task :app:mergeDebugAndroidTestShaders > Task :app:compileDebugAndroidTestShaders NO-SOURCE > Task :app:generateDebugAndroidTestAssets UP-TO-DATE > Task :app:mergeDebugAndroidTestAssets FAILED > Task :app:desugarDebugAndroidTestFileDependencies > Task :app:checkDebugAndroidTestDuplicateClasses FAILED > Task :app:mergeDebugAndroidTestJniLibFolders > Task :app:validateSigningDebugAndroidTest > Task :app:writeDebugAndroidTestSigningConfigVersions [Incubating] Problems report is available at: file:///C:/Users/dsyde/IdeaProjects/HealthApp/build/reports/problems/problems-report.html FAILURE: Build completed with 12 failures. 1: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:checkDebugAarMetadata'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 2: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mapDebugSourceSetPaths'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 3: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugResources'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 4: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:processDebugMainManifest'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 5: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugAssets'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 6: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:desugarDebugFileDependencies'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 7: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 8: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'. > Could not resolve all files for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 9: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:checkDebugAndroidTestAarMetadata'. > Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 10: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:processDebugAndroidTestManifest'. > Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 11: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:mergeDebugAndroidTestAssets'. > Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== 12: Task failed with an exception. ----------- * What went wrong: Execution failed for task ':app:checkDebugAndroidTestDuplicateClasses'. > Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'. > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find com.github.PhilJay:MPAndroidChart:v3.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom - https://repo.maven.apache.org/maven2/com/github/PhilJay/MPAndroidChart/v3.1.0/MPAndroidChart-v3.1.0.pom Required by: project :app > Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'. > Could not find org.json:json:20240321. Searched in the following locations: - https://dl.google.com/dl/android/maven2/org/json/json/20240321/json-20240321.pom - https://repo.maven.apache.org/maven2/org/json/json/20240321/json-20240321.pom Required by: project :app * Try: > The project declares repositories, effectively ignoring the repositories you have declared in the settings. To determine how project repositories are declared, configure your build to fail on project repositories. For more information, please refer to https://docs.gradle.org/8.11.1/userguide/declaring_repositories.html#sub:fail_build_on_project_repositories in the Gradle documentation. > 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. ============================================================================== Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.11.1/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. BUILD FAILED in 1s 37 actionable tasks: 36 executed, 1 up-to-date
05-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值