Flutter: gradle issue











up vote
0
down vote

favorite












i have this problem when running my flutter app



FAILURE: Build failed with an exception.

* 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. Run with --scan to get full
insights.


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


BUILD FAILED in 0s


and i tried to solve it by adding



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


but it doesn't work



Finished with error: Gradle task assembleDebug failed with exit code 1










share|improve this question






















  • did you try running flutter clean before?
    – diegoveloper
    Nov 11 at 1:40















up vote
0
down vote

favorite












i have this problem when running my flutter app



FAILURE: Build failed with an exception.

* 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. Run with --scan to get full
insights.


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


BUILD FAILED in 0s


and i tried to solve it by adding



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


but it doesn't work



Finished with error: Gradle task assembleDebug failed with exit code 1










share|improve this question






















  • did you try running flutter clean before?
    – diegoveloper
    Nov 11 at 1:40













up vote
0
down vote

favorite









up vote
0
down vote

favorite











i have this problem when running my flutter app



FAILURE: Build failed with an exception.

* 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. Run with --scan to get full
insights.


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


BUILD FAILED in 0s


and i tried to solve it by adding



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


but it doesn't work



Finished with error: Gradle task assembleDebug failed with exit code 1










share|improve this question













i have this problem when running my flutter app



FAILURE: Build failed with an exception.

* 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. Run with --scan to get full
insights.


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


BUILD FAILED in 0s


and i tried to solve it by adding



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


but it doesn't work



Finished with error: Gradle task assembleDebug failed with exit code 1







android gradle flutter






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 10 at 12:12









Pondikpa Tchabao

3218




3218












  • did you try running flutter clean before?
    – diegoveloper
    Nov 11 at 1:40


















  • did you try running flutter clean before?
    – diegoveloper
    Nov 11 at 1:40
















did you try running flutter clean before?
– diegoveloper
Nov 11 at 1:40




did you try running flutter clean before?
– diegoveloper
Nov 11 at 1:40

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238827%2fflutter-gradle-issue%23new-answer', 'question_page');
}
);

Post as a guest





































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238827%2fflutter-gradle-issue%23new-answer', 'question_page');
}
);

Post as a guest




















































































Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues