所以我更新了build.gradle文件:
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'
但当我尝试同步项目时,会弹出
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
(和其他两个存储库相同)
然后我尝试单击“安装存储库并同步项目”,并发生以下错误:
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.
并安装失败.
我已经在SDK管理器中安装了构建工具23.0.1以及android M的所有内容.
尝试回滚到23.0.0,但它是一样的.
怎么了?这个包过滤器来自哪里?在发生此错误之前,我不认为我更改了除build.gradle之外的任何内容
编辑:我试图删除构建工具并再次安装它们,同时安装SDK管理器日志弹出:
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.