Closed razaghimahdi closed 2 years ago
Hey
Have you added huawei's maven repos?
yeah actually I did here is my code:
import dependencies.*
// 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" }
maven { url 'https://developer.huawei.com/repo/' }
maven { url 'https://dl.bintray.com/tapsellorg/maven' }
}
dependencies {
classpath Build.androidBuildTools
classpath Build.kotlinGradlePlugin
classpath Build.hiltAndroid
classpath Build.navigationSafeArgsGradlePlugin
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Well, that's not where they should be. These are for classpath
plugins and not libraries.
If using latest ones the repositories -> allProjects
is in settings.gradle
file maybe. Wherever it is, it's not where you mentioned.
Please re-open the issue if the error wasn't resolved with the fix I suggested.
TIP: Also remove dl.bintray.com/*
. Those servers are shutdown and not accessible. Libraries (such as Tapsell) are mostly moved to mavenCentral()
which is added but default.
it worked tnx :)
Why i get this??? whats the problem? how to solve that?
FAILURE: Build completed with 8 failures.
1: Task failed with an exception.
What went wrong: Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
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.
3: 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.
4: Task failed with an exception.
What went wrong: Execution failed for task ':app:processDebugMainManifest'.
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.
5: Task failed with an exception.
What went wrong: Execution failed for task ':app:mergeDebugAssets'.
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.
6: Task failed with an exception.
What went wrong: Execution failed for task ':app:checkDebugDuplicateClasses'.
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.
7: Task failed with an exception.
What went wrong: Execution failed for task ':app:desugarDebugFileDependencies'.
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.
8: Task failed with an exception.
What went wrong: Execution failed for task ':app:mergeDebugNativeLibs'.
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.