toom toom - 5 months ago 59
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

com.android.support:appcompat-v7:14+
. However, then I get the error message:

Failed to resolve: com.android.support:appcompat-v7:14+
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
com.android.support:appcompat-v7:14+
?

Answer

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

Try:

compile 'com.android.support:appcompat-v7:23.0.1'

instead of:

com.android.support:appcompat-v7:14+

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"
Comments