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 should manually set the same version via DependencyResolution #23

Open
adigest opened this issue Nov 21, 2019 · 1 comment
Open
Assignees

Comments

@adigest
Copy link

adigest commented Nov 21, 2019

i have change build.gradle android option,but automatic generation .android can't set the same version。change my plugin need manually modify .android's defaultConfig and dependencies version every time。Is there any good way to help me?

image

@adigest
Copy link
Author

adigest commented Nov 21, 2019

A temporary solution was found:
add to your root build.gradle

    subprojects {
        project.configurations.all {
            resolutionStrategy.eachDependency { details ->
                if (details.requested.group == 'com.android.support'
                        && !details.requested.name.contains('multidex')) {
                    details.useVersion "26.1.0"
                }
            }
        }
    }

image

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