When I build my apk its shows an error like this. Please help me.
After updating android studio 3.0.1:
The version of Gradle you are using (2.2.1) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later