Failed to resolve: support-fragment error when add google architecture component dependency

前端 未结 6 1526
青春惊慌失措
青春惊慌失措 2021-02-14 07:16

I want to use Google architecture components in my app, but after updating android studio to version 3.1.1 when I add android.arch.lifecycle:extensions:1.1.1 depend

6条回答
  •  一生所求
    2021-02-14 07:45

    I had a similar error and changing the repositories order so that google() comes before jcenter() fixed it.

    I had to change the order for the repositories within buildscript and allprojects in the top level build.gradle file.

    Please see this commit: https://github.com/kunadawa/ud851-Exercises/commit/9f6720ef4d52c71b206ddaa8477f2cf6e77a66f4

提交回复
热议问题