Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译不过,提示 Android dependency 'androidx.arch.core:core-runtime' has different version for the compile (2.0.0-rc01) and runtime (2.0.0) classpath #578

Closed
Aaron009 opened this issue Nov 22, 2019 · 6 comments

Comments

@Aaron009
Copy link

Aaron009 commented Nov 22, 2019

@CarGuo @YinRenjie1993 @xzchsia @CarGuoSmall

提示如下

Execution failed for task ':app:preDebugBuild'.
> Android dependency 'androidx.legacy:legacy-support-core-ui' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath. You should manually set the same version via DependencyResolution

还报这个,不知道如何解决。

 java.lang.RuntimeException: Android dependency 'androidx.arch.core:core-runtime' has different version for the compile (2.0.0-rc01) and runtime (2.0.0) classpath. You should manually set the same version via DependencyResolution
@Aaron009
Copy link
Author

Aaron009 commented Nov 22, 2019

solved!

Modify the android/build.gradle file

Buildscript {
    Ext.kotlin_version = '1.3.0' // Original version 1.2.71
    Repositories {
        Google()
        Jcenter()
    }

    Dependencies {
        Classpath 'com.android.tools.build:gradle:3.3.1' // Original version 3.2.0
        Classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

Reference

flutter/flutter#27254

@Aaron009 Aaron009 changed the title 编译不过,提示 Android dependency 'androidx.legacy:legacy-support-core-ui' has different version for the compile (1.0.0-rc01) and runtime (1.0.0) classpath 编译不过,提示 Android dependency 'androidx.arch.core:core-runtime' has different version for the compile (2.0.0-rc01) and runtime (2.0.0) classpath Nov 22, 2019
@CarGuo
Copy link
Owner

CarGuo commented Nov 22, 2019

确定你的 flutter sdk 是 stable 1.9.1

@Aaron009
Copy link
Author

Aaron009 commented Nov 22, 2019

@CarGuo
是1.10.15的版本,我看readme。懒得降级了,sdk版本问题,太烦了,不想让电脑装很多版本。

@CarGuo
Copy link
Owner

CarGuo commented Nov 22, 2019

嗯嗯,只是 channel 版本我还没做兼容,good~能解决就好

@CarGuo CarGuo closed this as completed Nov 22, 2019
@Aaron009
Copy link
Author

像这种问题,需要我提交修改么? 需要的话跟我说一声。

@CarGuo
Copy link
Owner

CarGuo commented Nov 22, 2019

暂时不用,我只适配 stable 分支的现在

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants