Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'

前端 未结 11 814
抹茶落季
抹茶落季 2020-11-22 16:37

Good day. After updating google repository in AndroidStudio, I have an issue

> Error:Execution failed for task \':app:transformClassesWithJarMergingForDe         


        
11条回答
  •  北海茫月
    2020-11-22 17:13

    Open your system command prompt/terminal -> Go to your Project folder path (root project folder ) -> Execute following command : command :- gradlew clean or ./gradlew clean

    Make sure that all your gradle dependencies are of same version. -> Example :- your appcompat and recyclerview dependencies should have same version.

    -> Change your gradle dependencies to same version like :-

    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support:design:23.4.0'
    compile 'com.android.support:recyclerview-v7:23.4.0'
    compile 'com.android.support:cardview-v7:23.4.0'
    

    -> Rebuild your project and it will work fine.

提交回复
热议问题