So I've updated my build.gradle file:
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:recyclerview-v7:23.0.1'
compile 'com.android.support:cardview-v7:23.0.1'
compile 'com.android.support:design:23.0.1'
But when I try to sync the project this pops up
Error:(25, 13) Failed to resolve: com.android.support:recyclerview-v7:23.0.1
Install Repository and sync project
Show in File
Show in Project Structure dialog
(and the same for the other two repositories)
Then I try to click "Install Repository and sync project" and this error occurs:
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 install fails.
I have installed build tools 23.0.1 and everything for android M in SDK manager. Tried rolling back to 23.0.0 but it's the same.
What's wrong? Where did this package filter came from? I dont think I changed anything except for build.gradle before this error occured
EDIT: I tried to delete build tools and install them again and while installing SDK manager log popped up with this:
Preparing to install archives
Downloading Android SDK Platform-tools, revision 23.0.1
Installing Android SDK Platform-tools, revision 23.0.1
*** -> Stopping ADB server failed (code -1)
Installed Android SDK Platform-tools, revision 23.0.1
Downloading Android SDK Build-tools, revision 23.0.1
Installing Android SDK Build-tools, revision 23.0.1
Installed Android SDK Build-tools, revision 23.0.1
Stopping ADB server succeeded.
Starting ADB server succeeded.
Done. 2 packages installed.
Done loading packages.
First make sure that you set
compileSdkVersion 23
buildToolsVersion "23.0.1"
and
targetSdkVersion 23
Then press Sync Project with Gradle Files and install everything that is missing.
Next, add your
compile 'com.android.support:design:23.0.1'
and make sure that you are NOT trying to add this
compile 'com.android.support:design-v7:23.0.1'
it should work now.
In my case Reinstalling Android Studio fixed the bug. I guess something wrong was with network.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With