implementation 'com.android.support:appcompat-v7:28.0.0'

add implementation 'com.android.support:support-v4:28.0.0' in your gradle

as an old version of com.android.support:support-v4:26.1.0 is there imported by some other library which is causing the issue with com.android.support:appcompat-v7:28.0.0, similarly add the other implementations that occur after this one. so final would be like

implementation 'com.android.support:appcompat-v7:28.0.0' 
implementation 'com.android.support:support-v4:28.0.0'

add the below implementation in gradle file :

implementation 'com.android.support:support-annotations:28.0.0'