toom toom - 1 year ago 191
Android Question

Android Studio: appcompat installation fails

I've a strange problem. I just installed the most recent version of android studio and created a plain vanilla blank activity application. After that, when the IDE opens it tries to install
. However, then I get the error message:

Failed to resolve:
Install repository and sync project

So, I click on
Install repository and sync project
however, then I get the following error message:

Loading SDK information...
Ignoring unknown package filter 'extra-android-m2repository'Warning: The package filter removed all packages. There is nothing to install.
Please consider trying to update again without a package filter.

And underneth it red it is stated:

Install Failed. Please check your network connection and try again. You may continue with creating you project, but it will not compile correctly without the missing components.

So, my internet connection is perfectly fine, no traffic gets block by an firewall or something.

What is wrong here? Are there alternatives for installing

Answer Source

I think you have an incorrect version on your compile tag (23.0.1, instead of 14+):


compile ''

instead of:

and you may need to update your compile and tools versions as well (which is required to use the new versions of AppCompat, etc):

compileSdkVersion 23
buildToolsVersion "23.0.1"