-
Notifications
You must be signed in to change notification settings - Fork 571
Description
Issue with resolving dependency in Android Java application
I am currently developing an Android Java application and I am facing an issue related to resolving a dependency. I have cloned a software from a repository, and in the build.gradle file, I have the following configuration:
`
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
However, when I try to build the project, I encounter the following error:
My gradle plugin ver : 2.2.0 and gradle ver : 7.2
Could not resolve all artifacts for configuration ':classpath'.
Could not find com.tencent.mm:AndResGuard-gradle-plugin:1.2.0.
Searched in the following locations:
- https://jcenter.bintray.com/com/tencent/mm/AndResGuard-gradle-plugin/1.2.0/AndResGuard-gradle-plugin-1.2.0.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 :"
I believe this error is due to the inability to resolve the com.tencent.mm:AndResGuard-gradle-plugin:1.2.0 dependency. It seems that the artifact is not available in the specified repository.
To resolve this issue, I have already tried adding the necessary repository and updating the Gradle plugin version, but the problem persists.
If anyone has encountered a similar issue or has any suggestions for resolving this problem, your assistance would be greatly appreciated.
Thank you in advance for your help.