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

前端 未结 11 964
抹茶落季
抹茶落季 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:08

    I got this error because I did not have the correct line in my build.gradle. I am using the org.apache.http.legacy.jar library, which requires this:

    android{
       useLibrary 'org.apache.http.legacy'
    
       ...
    }
    

    So check that you have everything in your gradle file that is required.

提交回复
热议问题