找不到 com.google.android.gms:strict-version-matcher-plugin:1.1.0

2023-12-22

无法解析配置“类路径”的所有文件。

找不到 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.pom https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.jar 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:google-services:4.2.0

尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。

获得更多帮助https://help.gradle.org https://help.gradle.org

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
}

通过在存储库{}和所有项目{}中添加包含 jcenter() 和 google() 的存储库解决了此问题

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

找不到 com.google.android.gms:strict-version-matcher-plugin:1.1.0 的相关文章

随机推荐

  • 如何实时检索iOS App Store排名前1000的游戏列表

    我想实时检索 iOS App Store 中排名前 1000 的应用程序 特别是游戏 列表 这些信息是公开的 至少是前 300 条信息 但 Apple 不提供任何 API 或自动方式来获取这些列表 有谁知道这方面有什么好的服务吗 我在下面的
  • 使用 Powershell 添加和删除 Xmlnode

    我正在尝试从多个 xml 文件中添加和删除元素 我遇到了两个问题 它自动删除了空元素 其次它没有删除我想要的内容 我的 xml 是这样的
  • HTML5 与 Angular 4 拖放

    我正在尝试让原生 HTML 5 拖放功能在我的 Angular 应用程序中工作 我得到了拖动 触发了拖动和 DragOver 事件 但不幸的是 下降并没有触发任何东西 下面是 HTML 和拖动事件代码 ul li class list gr
  • 如何从上限集合中删除文档?

    当我尝试删除 MongoDB 集合中的文档时 它没有删除 因为集合已被限制 我的问题是为什么 在这种情况下是否有解决方案或其他功能可以删除该文档 否 您无法从上限集合中删除文档 并且没有可能的解决方法 你唯一能做的就是drop http d
  • 如何将打印预览的页边距设置为0?

    我哪里做错了 This is the normal print preview But I want to see this picture without dragging margin arrows 这是CSS代码和预览 是的 可以更改
  • Android proguard,保持内部类

    我的android程序有一个class A 其中有两个static inner class 他们被发现被剥夺 dex应用proguard后 public class A static class B static class C 我已将以下
  • 元素顺序对于内联 SVG 重要吗?

    在 Google Chrome 24 中 如果某个元素被
  • Rails link_to 锚点与远程: true & method: :post

    由于某种原因 锚点不适用于 method post 我的视图文件index haml some code here h3 Description results render result box result box haml 部分 ro
  • 在哪里可以找到 默认显示的文档?

    我假设它是内联的或块的 但我想在文档中验证它 但在 MDN 上找不到它 https developer mozilla org en US docs Web HTML Element input https developer mozill
  • java 已启动但返回退出代码 = -805306369

    谁能帮我解决这个错误 java 已启动但返回退出代码 805306369 C Windows System32 javaw exe jar C Program Files Java eclipse jee helios SR2 win32
  • 同位素附加问题

    我正在使用同位素构建一个平滑的网格画廊 目前我在附加功能方面遇到问题 http isotope metafizzy co docs methods html append http isotope metafizzy co docs met
  • 如何 git commit --amend 作为分支基础的提交

    我有 master head 的分支 foo 我想修改 master head 并让这些更改在分支 foo 上生效 我做了以下事情 git checkout master git add git commit amend git check
  • 使用 PlayFramework 2.4.2 的 ProvisionException

    我正在将一个项目从 Play 2 2 4 迁移到 2 4 2 但遇到了一个我无法理解和解决的异常 Unexpected exception ProvisionException Unable to provision see the fol
  • 如何在Python中计算水分通量散度

    我想计算南部非洲的水汽通量散度 MFD 我在特定一天使用 850 hPa 的 u 和 v 风分量以及 850 hPa 的比湿度 我已按照此处描述的步骤进行操作 使用Python计算u和v的风散度 np gradient https stac
  • 在 Visual Studio Code 中设置文件“launch.json”的 Python 路径

    我使用 Visual Studio Code 已有几年了 我发现它是一个非常好的 IDE 我用 Python 编程的次数比任何其他语言都多 令我困扰的是我没有抽出时间使用 IDE 的调试器 尽管它是一个功能 按调试播放按钮时出错 Faile
  • dplyr 总结函数返回值何时为向量值?

    The dplyr summarize 函数可以对数据应用任意函数 但函数似乎必须返回标量值 我很好奇是否有一种合理的方法来处理返回向量值的函数 而无需多次调用该函数 这是一个有点愚蠢的最小示例 考虑一个给出多个值的函数 例如 f lt f
  • ubuntu 18.10 - 如何使用 java 安装 JavaFX

    我安装了openjdk8和11 JavaFX 都没有附带 我安装了 openjfx 和 libopenjfx java 软件包 但无法让我的应用程序运行 sudo apt list installed grep jfx WARNING ap
  • 两个geom_points添加图例

    我使用以下代码绘制 2 geom point 图 source http www openintro org stat data arbuthnot R library ggplot2 ggplot geom point aes x yea
  • Hibernate、Java 9 和 SystemException

    我一直在尝试在 Java 9 Spring Boot 1 5 x Maven 项目中运行 Hibernate 5 2 11 应用程序 但缺少类 Caused by java lang NoClassDefFoundError javax t
  • 找不到 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