• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Execution failed for task

jonses

Lurker
Hi everyone ! I hope you are having a nice day !

I am writing this in order to find some help. I am a newbie in Android development, so I hope you will forgive me for my lack of knowledge about it.

I am trying to run an app that my team are developing, but android studio keeps saying this :
Error:Execution failed for task ':app:transformClassesWithDesugarForDebug'.
com.android.build.api.transform.TransformException:
java.lang.RuntimeException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: Error while executing java process with main class com.google.devtools.build.android.desugar.Desugar with arguments {@C:\Users\Anis\Documents\android-pos-v2\app\build\intermediates\tmp\desugar_args7946564509325145732}

Android Studio says that there is an issue when I scroll inside of it :

All support libraries must use the exact same version specification.

Here is the part of the gradle where it says something is wrong :

Code:
compile files('libs/powermock-mockito-1.7.1-full.jar')
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:appcompat-v7:25.3.1'

This support library :
Code:
compile 'com.android.support:design:25.3.1

is underlined in red. It is written this :
All support libraries must use the exact same version specification

The SDK version and tools version are :

Code:
compileSdkVersion 25
        buildToolsVersion '26.0.2'
        defaultConfig {
            applicationId "com.hottab.pos.v2"
            minSdkVersion 15
            targetSdkVersion 21
            versionCode 1031
            versionName "1.0.31"
            multiDexEnabled true
            testInstrumentationRunner
            "android.support.test.runner.AndroidJUnitRunner"


I have tried to find solutions on the forum and on google, but nothing worked for me. I have even deleted the whole project and downloaded it again, but the same issue appears again and again.
And what is surpring is on the laptops of my team they can run the app,, but not on mine.

I am not sure if the problem about the support library is the reason why I have the problem that I stressed before in my post, but maybe if I can fix this it can solve the problem. But I am a newbie and I don't really know how to fix this.

I really stuck now, and I really need to fix this to keep going. If someone can help, it would be very nice.
Thank you very much
 
Last edited:
Back
Top Bottom