【发布时间】:2020-08-06 21:25:09
【问题描述】:
我正在尝试将 Charboost maven 存储库添加到我的 build.gradle。我正在关注他们说要做的文档
repositories {
maven { url "https://chartboostmobile.bintray.com/Chartboost" }
}
我已经有了,它可以工作:
repositories {
jcenter()
google()
flatDir {
dirs 'libs'
}
}
但是当我添加maven { url "https://chartboostmobile.bintray.com/Chartboost" } 时,我得到了
Could not compile build file '.../build.gradle'.
> startup failed:
build file '.../build.gradle': _: Invalid variable name. Must start with a letter but was:
. At line _, column _.
maven { url 'https://chartboostmobile.bintray.com/Chartboost' }
^
我试过用com.android.tools.build:gradle:3.1.3 和4.+ 来做这件事,我也试过apply plugin: 'maven' 和plugin { id 'maven' }
【问题讨论】:
-
发布您的整个
build.gradle
标签: android maven android-studio gradle build