Open chirag-deshwal opened 3 years ago
same problem, have you solved the probem?
Works after disabling the below-mentioned stuff from settings.gradle!
/dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) repositories { google() mavenCentral() jcenter() // Warning: this repository is going to shut down soon } }/
finally I can find the solution, you just move
maven { url "https://jitpack.io" }
from
build.gradle (Project)
to
settings.gradle
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter()
maven { url "https://maven.google.com" }
maven { url "https://jitpack.io" }
}
}
rootProject.name = "<Project Name>"
include ':app'
Could not find com.android.tools.build:gradle:7.0.1. Searched in the following locations:
hi cant find gradle
Do you want to request a feature or report a bug? Bug
What is the current behavior? Gradle build failed
What is the expected behavior?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
Please attach any image files, URL and
stack trace
that can be used to reproduce the bug.Which versions of uCrop, and which Android API versions are affected by this issue? Did this work in previous versions of uCrop?
Gradle Version - 7.1.1 Android Gradle - 7.0.1
**Error
FAILURE: Build completed with 8 failures.
1: Task failed with an exception.
What went wrong: Execution failed for task ':app:checkDebugAarMetadata'.
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.
==============================================================================
2: Task failed with an exception.
_____ My Gradle File(Project) ____
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() mavenCentral() maven { url { "https://jitpack.io" } } }
dependencies { classpath "com.android.tools.build:gradle:7.0.1" classpath 'com.google.gms:google-services:4.3.10' classpath 'com.google.firebase:firebase-crashlytics-gradle:2.7.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }
task clean(type: Delete) { delete rootProject.buildDir }
____ Gradle (App) __
plugins { id 'com.android.application' }
android { compileSdk 31
}