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

末鹿安然 提交于 2019-11-30 08:24:53

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'

You must update your

compileSdkVersion 28   &   targetSdkVersion 28

then Use

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

This is the stable release of Support Library 28.0.0 and is suitable for use in production. This will be the last feature release under the android.support packaging, and developers are encouraged to migrate to AndroidX.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!