问题
How do I disable a package filter? I keep getting this message....
Ignoring unknown package filter 'build-tools-23.0.0_rc2'
Warning: The package filter removed all packages. There is nothing to install.
Please consider trying to update again without a package filter.
回答1:
First of all make sure you have installed build-tools-23.0.0 using the sdk manager.
Then open the build.gradle file at app level and remove the 'rc2' part from the line buildToolsVersion "23.0.0 rc2"
This is how I have solved the same issue. Hope it helps.
回答2:
Solved!!! I was facing the same issue and after searching for quite a long time, I found this way around:
- open your cmd
- go to sdk dir
- if
./tools/android list sdk -eprints id: 1 or "tools" there is an update for the sdk tools available ./tools/android update sdk -u -a -t toolsinstalls/updates the sdk tools (it reinstalls if already installed)
It will ask y/n. Choose yes, it starts installing.
Finally what solved my problem is to download this rar file (containing the 23.0.0_rc2 sdk files), and extract it inside sdk->build-tools.
回答3:
I had this same issue it was resolved after fixing my syntax in my build.gradle. One of my closing brackets was in the wrong place.
Hope this helps
来源:https://stackoverflow.com/questions/31501126/how-to-remove-package-filter