I have a strange problem in that NB + gradle will only accept support.v4 up to version 22.x.x.
I have made a minimalistic project with the only code as seen in the attached snapshot. The app loads fine and makes its toast, but the editor/compiler is in deep trouble as it indicates it cannot see the libraries set as dependencies in build.gradle.
It has defined mavenLocal() in order to force use of local copies of the Android SDK libraries
When I run this project in Android Studio, everything is fine. Something is going on in NB + gradle that is not equal to the handling in Android Studio.