Closed alcadiosystem closed 2 years ago
I proceed to close this thread, dissolution and it is as follows:
Select the project view from the file viewer, the file setting.gradle is made two modifications
1) The line repositoriesMode.set (RepositoriesMode.FAIL_ON_PROJECT_REPOS) which is the original, you need to replace it with the following repositoriesMode.set (RepositoriesMode.PREFER_SETTINGS)
2) add the maven {url 'https://jitpack.io'} inside the repositories object
Thx for your feedback, there will be helpfull !
When trying to compile in a new or existing project, it generates the following error when compiling the app `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.
What went wrong: Execution failed for task ':app:mergeDebugResources'.
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.
`
For a new project, my gradle config file is as follows:
`// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() mavenCentral() } dependencies { classpath "com.android.tools.build:gradle:7.0.1"
}
allprojects { repositories { google() mavenCentral() maven { url 'https://jitpack.io' }
}
task clean(type: Delete) { delete rootProject.buildDir }`
Gradle app `plugins { id 'com.android.application' }
android { compileSdk 31
}
dependencies {
}`
It should be noted that this error only appears when the compilation is carried out by calling this library, when the line of code is eliminated or commented, it compiles normally
Does anyone know how I could fix this error?