错误:
Execution failed for task ':app:crashlyticsUploadDistributionPreviewRelease'. getMainOutputFile is no longer supported. Use getOutputFileName if you need to determine the file name of the output.
当我调用crashlyticsUploadDistributionRelease
时,gradle控制台向我显示这些消息,
我尝试了最新的fabric插件(io.fabric.tools:gradle:1.22.1
),我假设fabric gradle插件
不支持最新的android-gradle-plugin-3.0-x
。
以下是有关新 gradle-plugin-variant-api 的更多信息,也许会有帮助
最佳答案
来自 Fabric 的 Mike。
编辑 更新至 Fabric Gradle plugin 版本 1.24.1与 Gradle 3.0.+ 兼容。
原创 是的,Android Studio 和 Gradle 的 Alpha 版本包含重大更改和潜在的错误。我们将关注 Gradle 和 Android Studio 的更改,看看我们是否需要进行其他更改,或者这些工具是否可以解决这些更改。
如果需要继续使用Fabric,建议使用更稳定版本的Android Studio和Gradle。
关于twitter-fabric - Fabric gradle插件与AS3.0集成(android-gradle-plugin-3.0),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44432755/