我在我的 Gradle 构建选项卡中收到此警告
Warning:Gradle 3.3 not supported by bintray-release plugin. Update required!
但我有最新版本,如 Android 开发者页面 here而且我还有最新版本的 bintray 库。!
我的 build.gradle(项目):
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.novoda:bintray-release:0.5.0'
}
这是 Gradle 控制台中的错误:
**************************************
WARNING: Gradle 3.3 not supported by bintray-release plugin. Update required!
The bintray-release plugin doesn't support version of Gradle below 3.4 for Android libraries. Please upgrade to Gradle 3.4 or later.
The last bintray-release plugin supporting Gradle 3.3 is 'com.novoda:bintray-release:4.0'
Upgrade Gradle:
./gradlew wrapper --gradle-version 3.5 --distribution-type all
The bintray-release plugin can't create a Publication for your Android Library with Gradle 3.3!
**************************************
如果我尝试将 gradle 更改为 2.3.4
或 2.3.+
它不起作用。!
由于这个问题,我无法连接到我的 firebase,它在尝试连接 Firebase 时一直向我显示此错误:
Could not parse the Android Application Module's Gradle config. Resolve gradle build issues and/or resync.`
最佳答案
该错误消息并不是要您升级构建脚本依赖项。它要求您升级用于构建应用的 Gradle 版本。
您是否尝试运行它建议的命令?
./gradlew wrapper --gradle-version 3.5 --distribution-type all
此时 Gradle 的最新版本实际上是 4.0.1,因此您也可以尝试一下。最终结果是在项目的 gradle/wrapper/gradle-wrapper.properties
文件中更改 Gradle 分发。
关于android - 我无法连接到 Firebase,因为 bintray-release 插件不支持 Gradle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45004549/