Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

com.android.support:appcompat-v7:27.1.1 mismatch with media-compat:25.2.0

In my project dependencies android.support:appcompat-v7:27.1.1 but its clashing with support-media-compat: 25.2.0. i tried to slove it by changing appcompat-v7:25.+ , 25.2.0 and others but its not fixed. Even i don't find media-compat in gradle or anywhere.

Please help me to fix it. Now I can't run my project on AVD or USB connected phone. Here is my android studio interface

[When i rebuild my project its says All fine but when i tried to run the project it gives some error[2]

like image 577
Saraf Uddin Avatar asked Apr 29 '18 17:04

Saraf Uddin


1 Answers

I had the same problem when adding Firebase invites. I solved by adding this to dependencies, following this link.

implementation 'com.android.support:support-media-compat:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'

According to the post, the error is misguiding. The problem is not a dependency conflict but the lack of the dependency package. But i am not sure of this interpretation, anyway, it works.

like image 127
MiguelSlv Avatar answered Oct 24 '22 18:10

MiguelSlv