Ionic3 构建错误:找不到 play-services-auth-base.aar (15.0.1) [英] Ionic3 Build-Error: Could not find play-services-auth-base.aar (15.0.1)

查看:28
本文介绍了Ionic3 构建错误:找不到 play-services-auth-base.aar (15.0.1)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个更大的 Ionic3 项目正在运行并且自从我上次成功构建以来没有做任何更改.今天,我再次尝试构建,得到错误:

i have a bigger Ionic3 project running and did not do any changes since i had a successful build last time. Today, i tried to build again, getting the error:

Could not find play-services-auth-base.aar (com.google.android.gms:play-services-auth-base:15.0.1).

我不明白为什么会发生这种情况.Cordova 平台版本为 6.3.0.

I can not figure out why this happens. Cordova-platform is Version 6.3.0.

目前完成的步骤:

  • 安装了 cordova-android-play-services-gradle-release,在构建过程中以 15.+ 作为版本

  • Installed cordova-android-play-services-gradle-release, which 15.+ as version during the build

安装了 cordova-android-support-gradle-release,在构建过程中以 27.+ 作为版本

Installed cordova-android-support-gradle-release, which 27.+ as version during the build

在平台内操纵 gradle.build,如其他 stackoverflow 问题中所推荐.

Manipulated gradle.build within the platform, as recommended in other stackoverflow-questions.

也许将cordova 更新到7.x 也是一种选择,但由于多个cordova 插件依赖项,我想避免它.

Maybe updating cordova to 7.x also is an option, but i want to avoid it due to multiple cordova plugin dependencies.

代码:

allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}

推荐答案

如果您的应用不需要任何较新的 Google API,请尝试在 config.xml 文件中指定较旧的 Play 服务版本.我使用 11.6.2 成功构建.任何更新的东西都会给我同样的构建错误.

If your app does not require any of the newer Google APIs, try specifying an older Play Services Version in your config.xml file. I got a successful build by using 11.6.2. Anything newer gave me the same build error.

这篇关于Ionic3 构建错误:找不到 play-services-auth-base.aar (15.0.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆