Related to NativeScript/android#1183
When before-plugins.gradle exists in the application App Resources folder it is being executed before the include.gradle files of the plugins. However if you have a plugin to be build in the application (plugin without built aar file inside) and you want to set the compileSdkVersion or buildToolsVersion in the before-plugins.gradle it should be applied inside the build.gradle in the tempPlugin folder.