play-services-ads:18.0.0 and appcompat-v7:28.0.0 - merger failed and dependencies using groupid com.android.support and androidx.* can not be combined

筅森魡賤 提交于 2019-12-02 03:18:05

This issue is happening because latest versions of com.google.android.gms:play-services-ads (in this case v18.0.0) is already using AndroidX but your app is still using Android Support.

So, there are two possibilities:

  • Downgrade com.google.android.gms:play-services-ads

If you downgrade the version of that library, this issue should be fixed because old versions were still using Support Library (and not AndroidX).

You can try for example:

com.google.android.gms:play-services-ads:17.2.0

HERE you can find the list of released versions

  • You should consider to migrate your app to AndroidX.

Support Library was deprecated. So, sooner or later, you will have to move to AndroidX. If do so, errors like this won't happen.

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