Could not resolve com.android.support:appcompat-v7:26.1.0 in Android Studio new project

后端 未结 14 1903
一生所求
一生所求 2020-11-30 07:22

I know about this questions:

Failed to resolve: com.android.support:cardview-v7:26.0.0 android

Could not resolve com.android.support:appcompat-v7:26.1.0 [dup

14条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 08:11

    goto Android->sdk->build-tools directory make sure you have all the versions required . if not , download them . after that goto File-->Settigs-->Build,Execution,Depoyment-->Gradle

    choose use default gradle wapper (recommended)

    and untick Offline work

    gradle build finishes successfully for once you can change the settings

    If it dosent simply solve the problem

    check this link to find an appropriate support library revision

    https://developer.android.com/topic/libraries/support-library/revisions

    Make sure that the compile sdk and target version same as the support library version. It is recommended maintain network connection atleast for the first time build (Remember to rebuild your project after doing this)

提交回复
热议问题