gpt4 book ai didi

gradle - Protobuf Gradle 插件版本 0.8.6 及更高版本与项目 'flutter_blue' 使用版本 0.8.3

转载 作者:IT老高 更新时间:2023-10-28 12:45:53 24 4
gpt4 key购买 nike

使用:

  • VS 代码:1.29.1
  • flutter :1.0.0
  • Flutter_blue:0.4.1
  • 使用了 flutter_blue/example

启动调试器时,我得到:

Error running Gradle:
ProcessException: Process "C:\Development\flutter\bluetooth_example\android\gradlew.bat" exited abnormally:
Configure project :flutter_blue
The com.google.protobuf plugin was already applied to the project: :flutter_blue and will not be applied again after plugin: android-library

FAILURE: Build failed with an exception.
* What went wrong:
The Android Gradle plugin supports only Protobuf Gradle plugin version 0.8.6 and higher. Project 'flutter_blue' is using version 0.8.3.

有什么建议吗?

谢谢

最佳答案

我创建了一个拉取请求来解决这个问题。

https://github.com/pauldemarco/flutter_blue/pull/147

这是 flutter_blue 包中的 build.gradle 文件所需的更改。

 dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.3' <- Remove
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.6' <-- Add
}

尽管您可能还需要更新项目 list 文件中的 minSDK 版本,但您可以通过将版本编辑为 8.3.6 来手动执行此操作。

关于gradle - Protobuf Gradle 插件版本 0.8.6 及更高版本与项目 'flutter_blue' 使用版本 0.8.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53715806/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com