android - 无法在本地解决 tapandpay 依赖项
问题描述
无法解决:com.google.android.gms:play-services-tapandpay:17.1.2 来自developers.google 的说明:
dependencies {
// ...
implementation 'com.google.android.gms:play-services-tapandpay:17.1.0'
// Getting a "Could not find" error? Make sure you have added the unzipped SDK
// location to your root build.gradle file as a local maven dependency
}
allprojects {
// ...
repositories {
// ...
google() // Google's public Maven repository
maven { url "file:/path/to/your/repo/m2repository/" } // Local path to the folder into which you unzipped the SDK
}
}
ERROR:
Execution failed for task
> Could not resolve all files for configuration
> Could not find com.google.android.gms:play-services-tapandpay:17.1.2.
Required by:
project :app
我找不到正确的方法
解决方案
我解决了我的错误。我添加到 build.gradle
allprojects {
repositories {
google()
jcenter()
mavenLocal()
maven { url "file:/*pathto*/sdk/extras/google/m2repository/" }
}
}
推荐阅读
- django-models - 具有三个 3 模型的 Django 内联表单
- python - 'list' 对象的 AttributeError 没有属性 'objects'
- javascript - HereMaps JS api失败
- python-3.x - 当云功能下载某些东西时,对象会存储在哪里?
- android - 如何找到 Android 应用程序的库版本?
- ios - 如果想在应用程序中将正在播放的视频静音时恢复用户的背景音频,如何以最小的中断最好地做到这一点?
- angular - 从离子应用程序映像运行 docker 容器
- c# - 仅在一台机器上使用 DirectorySearcher.FindAll() 时出错
- postgresql - 具有 2 个表更新的简单 Postgres 过程不起作用
- sql - SQL 动态开始时间窗口分组