user2912308
user2912308

Reputation: 27

Problems importing/refreshing Gradle project in Android Studio

I have updated Android Studio from version .2.0 to .3.1 and when I start Studio it displayed the following error message:

"Problems importing/refreshing Gradle project 'Second':Unresolved dependencies: com.android.support:appcompat-v7:+ Search"

Upvotes: 3

Views: 2852

Answers (1)

samael
samael

Reputation: 2168

As per my answer on AndroidStudio - Gradle Refresh Failed

You probably need to update the Bundled Android SDK that comes with Studio:

Tools-> Android-> SDK Manager

I did a blog post about Android Studio Gotchas which also mentions this.

For some reason they totally ignore any Android SDK you may have manually installed and use their own. So selecting the SDK through the IDE makes sure you use the correct one. You need to ensure you have the latest compatibility library.

You may also need to restart the IDE after updating. I did in any case, can't remember if it was essential.

Upvotes: 5

Related Questions