菠菜呀
菠菜呀
  • 发布:2019-05-05 16:17
  • 更新:2019-05-05 17:35
  • 阅读:3751

Could not find method google() for arguments [] on repository container.

分类:HTML5+

官方提供的sdk里的实例
打包的时候报错提示:

Could not find method google() for arguments [] on repository container.

百度了一下
都是说要修改安卓项目gradle-wrapper.properties文件

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
替换为
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
但是我替换后提示
Error:(1, 0) Minimum supported Gradle version is 4.10.1. Current version is 4.1.

那么我现在应该怎么办呢, 版本改成多少合适

再再次编辑:
连上手机上可以测的
用as生成包是可以的
只有用命令行打包的时候报这个错

2019-05-05 16:17 负责人:无 分享
已邀请:
菠菜呀

菠菜呀 (作者) - 朝闻夕死

@DCloud_App_Array

菠菜呀

菠菜呀 (作者) - 朝闻夕死

来个老哥看看呀

菠菜呀

菠菜呀 (作者) - 朝闻夕死

@DCloud_UNI_CHB

该问题目前已经被锁定, 无法添加新回复