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

前端 未结 6 1436
青春惊慌失措
青春惊慌失措 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:36

    This just happened to me with a project I cloned from github.

    I updated my SDK and buildtools and had to double check all the dependencies to match the buildToolsVersion and the compileSdkVersion from the project.

    The error message wasn't very clear when I tried to sync the project, it only gave me a more explicit error when I tried to run and it failed.

    Could not find support-fragment.jar (com.android.support:support-fragment:27.0.2).

    Good Luck!

提交回复
热议问题