android - 找不到 com.google.android.gms:strict-version-matcher-plugin:1.1.0
问题描述
无法解析配置“类路径”的所有文件。
找不到 com.google.android.gms:strict-version-matcher-plugin:1.1.0。
在以下位置搜索:https ://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom https ://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.jar文件:/C:/Users/ e1706396/.m2/repository/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom 文件:/C:/Users/e1706396/ .m2/repository/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.jar 要求:未指定:未指定:未指定 > com.google .gms:谷歌服务:4.2.0
尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。
在https://help.gradle.org获得更多帮助
BUILD FAILED in 7s cmd: 命令失败,退出代码为 1
我正在使用插件吗
<plugin name="cordova-plugin-appavailability" spec="^0.4.2" />
<plugin name="cordova-plugin-camera" spec="^4.0.3" />
<plugin name="cordova-plugin-compat" spec="^1.2.0" />
<plugin name="cordova-plugin-device" spec="^2.0.2" />
<plugin name="cordova-plugin-googleplus" spec="^5.2.1">
<variable name="REVERSED_CLIENT_ID" value="xxx" />
</plugin>
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
<plugin name="cordova-plugin-ionic-webview" spec="^1.1.19" />
<plugin name="cordova-plugin-mfp" spec="^8.0.2018070216" />
<plugin name="cordova-plugin-mfp-push" spec="^8.0.2018040410" />
<plugin name="cordova-plugin-network-information" spec="^2.0.1" />
<plugin name="cordova-plugin-splashscreen" spec="^5.0.2" />
<plugin name="cordova-plugin-whitelist" spec="^1.3.3" />
<plugin name="cordova-plugin-x-socialsharing" spec="^5.4.1" />
<plugin name="cordova-wheel-selector-plugin" spec="^1.1.1" />
<plugin name="info.protonet.imageresizer" spec="^0.1.1" />
使用构建gradle
buildscript {
repositories {
maven {
url "https://maven.google.com"
}
mavenCentral()
jcenter()
}
dependencies {
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
allprojects {
repositories {
maven {
url "https://maven.google.com"
}
jcenter()
}
//This replaces project.properties w.r.t. build settings
project.ext {
defaultBuildToolsVersion="27.0.1" //String
defaultMinSdkVersion=19 //Integer - Minimum requirement is Android 4.4
defaultTargetSdkVersion=27 //Integer - We ALWAYS target the latest by default
defaultCompileSdkVersion=27 //Integer - We ALWAYS compile with the latest by default
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我认为可能是依赖
旧的或其他系统工作正常
节点 -v 3.10.10,NPM -v 6.10.10
我当前的系统注释工作出错
npm -v 6.4.1,节点 -v 8.12.0 节点 -v
解决方案
我在 Android Studio 上的 Android 项目中遇到过类似的问题。
确保您的项目级 build.gradle 文件是这样的
// 顶级构建文件,您可以在其中添加所有子项目/模块通用的配置选项。
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
allprojects {
repositories {
google()
jcenter()
}
task clean(type: Delete) {
delete rootProject.buildDir
}
通过在存储库{} 和 allprojects{} 中添加带有 jcenter() 和 google() 的存储库解决了这个问题
推荐阅读
- r - 编织降价时如何解决此错误
- python - 如何使用python中另一列的值创建一个新列
- android - 从 BroadcastReceiver 类 Kotlin 调用活动方法
- jenkins - Jenkins 插件管理最佳实践
- linux - 如何在 install4j 的控制台模式下随时关闭安装程序?
- javascript - 带有 0 值十进制的 JavaScript 整数
- camera - Openmv m7 摄像头模块是否适用于虹膜识别系统?
- python - 如何在 discord.py 中使用 sqlite3 配置欢迎事件?
- python - 无法将 csv 文件中的 cookie 导入 Python 中的 Requests Cookie Jar
- mysql - 带计数器的 SQL 连接