我正在尝试使用TouchImageView对安卓系统的依赖性。我无法在类中使用函数并在Log 1:https://github.com/MikeOrtiz/TouchImageView中获得此错误
任务失败,但有异常。
问题所在:任务':hideItPro:mergeDebugNativeLibs'.的执行失败
无法解析配置的所有文件“:hideItPro:调试器运行时Could”。无法解析com.github.MikeOrtiz:TouchImageView:1.1.1。需要: project :hideItPro >无法解析com.github.MikeOrtiz:TouchImageView:1.1.1。>无法获得资源的https://s3.amazonaws.com/moat-sdk-builds/com/github/MikeOrtiz/TouchImageView/1.1.1/TouchImageView-1.1.1.pom'。>不能得到'https://s3.amazonaws.com/moat-sdk-builds/com/github/MikeOrtiz/TouchImageView/1.1.1/TouchImageView-1.1.1.pom'‘。从服务器接收状态代码403 :禁止
在此构建中使用了不推荐的Gradle特性,使其与Gradle 7.0不兼容。使用请参阅https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings
构建失败的27s 303可操作任务: 270已执行,33最新
发布于 2021-11-22 19:47:41
In settings.gradle
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
//here the dependency
maven { url 'https://jitpack.io' }
jcenter() // Warning: this repository is going to shut down soon
}
}
include ':app'
rootProject.name = "Apk"这对我来说很管用
发布于 2021-11-23 12:40:57
在项目build.gradle文件中添加maven存储库,
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}在app build.gradle文件中添加依赖项,
dependencies {
...
implementation 'com.github.MikeOrtiz:TouchImageView:1.4.1' // last SupportLib version
// or
implementation 'com.github.MikeOrtiz:TouchImageView:$LAST_VERSION' // Android X
}https://stackoverflow.com/questions/69677010
复制相似问题