Ad

Unresolved Dependency :Could Not Find Any Version That Matches Com.android.support:appcompat-v7:29.+

There is always this unresolved dependency error showing up when I open a new android project on intelliJ

I have tried:

  1. unchecking the offline box
  2. updating gradle
  3. downloading the latest version from gradel's official website and setting gradle source to the file.
  4. changing from "29.+." to "29.0.0"

Error message:

ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':[email protected]/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+. Show Details Affected Modules: app

Ad

Answer

You should use Android Studio. Downloading gradle and linking it to a project yourself is not a good practice. You should let your IDE handle all that work for you whilst you focus on writing good code with your precious time. What you should do do is

  1. Download Android studio from the official site
  2. Create a new project and get a fast stable internet connection
  3. Android studio will download and install gradle at the first build and you are good to go

You may even make a new project with the best (highest) SDK version, and then check back with your own project the differences in the Gradle files. That can really help.

Ad
source: stackoverflow.com
Ad