1

I have created a blank android activity from the intelliJ templates. When I have gone to build it, I get the message:

build.gradle: Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.

Please could you help me work out what is wrong, I have tried searching on google for answers but none of them are clear.

intelliJ-IDEA error screenshot]

1 Answer 1

2

I'm facing this issue only when using Intellij Idea IDE with Android plugin.

Current workaround involves below steps:

  1. First In Project>app>build.gradle file replace line
    implementation 'com.android.support:appcompat-v7:+'29.+'
    with
    implementation 'com.android.support:appcompat-v7:+'
    and save it.

  2. After that click File > Re-Import Gradle Project, this will remove those errors

1
  • Great , this solution is the best !
    – Kaviranga
    Oct 9, 2020 at 3:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .