构建Flutter应用程序时发生异常

时间:2018-09-26 07:31:40

标签: dart flutter flutter-layout flutter-dependencies flutter-test

我正在尝试构建从GitHub克隆的this Flutter应用。

解决所有依赖性错误后,我看到以下故障:

FAILURE: Build failed with an exception.
s
* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'com.android.support:support-v4' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 4s
Gradle build failed: 1

我被这个问题困扰。有人可以帮我吗?

我的计算机上当前的依赖项版本如下:

  image_picker: ^0.4.10
  google_sign_in: ^3.0.5
  firebase_analytics: ^1.0.3
  firebase_auth: ^0.5.20
  firebase_database: ^1.0.4
  firebase_storage: ^1.0.2

0 个答案:

没有答案