Make these all correction mentioned below and sync your project with gradle.
1) Remove this dependency from your build.gradle file
compile "com.google.android:android:+"
2) Remove this from android-numberpicker/build.gradle after applying android plugin
repositories {
mavenCentral()
}
No use of it, you already defined in root gradle file.
3) Change you minSdkVersion and compileSdkVersion in android-numberpicker/build.gradle to 16 because class has been add in API Level 16
Check this fro reference http://developer.android.com/reference/android/view/accessibility/AccessibilityNodeProvider.html
Sync your project with gradle after all these changes and let me know if you face any issue.
EDIT :
I found this in NumberPicker Library code :
class SupportAccessibilityNodeProvider {
AccessibilityNodeProviderImpl mProvider;
private SupportAccessibilityNodeProvider() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
mProvider = new AccessibilityNodeProviderImpl();
}
}
public boolean performAction(int virtualViewId, int action, Bundle arguments) {
if (mProvider != null) {
return mProvider.performAction(virtualViewId, action, arguments);
}
return false;
}
public void sendAccessibilityEventForVirtualView(int virtualViewId, int eventType) {
if (mProvider != null) mProvider.sendAccessibilityEventForVirtualView(virtualViewId, eventType);
}
}
Which shows library handles it for lower versions so you can make your compileSDKVersion as 16 and minSdkVersion as 7/8.
Also have to add support v4 library in your project using this in dependency iside build.gradle file
compile 'com.android.support:support-v4:19.0.0'