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

查看:442
本文介绍了Ionic3 Build-Error:找不到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-platform是版本6.3.0。

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

到目前为止已完成的步骤:

Steps done so far:


  • 已安装 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-questions中所建议的那样。

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 Build-Error:找不到play-services-auth-base.aar(15.0.1)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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