With Android Studio 3 the app cannot be built at the moment. This
is caused by Gradle 3.3 not supporting the forTask() method.
Updating gradle to 4.0 resolves the issue.
Updated gradle build tools to 2.3.0, updated android support libs to v25, updated targetSdkVersion to 25. Removed unused ndk libs, code that required it was removed several months ago.