While trying to build my Application on Android Studio 2.1 (On Ubuntu 16.04), it gets stuck on the below note:
Executing tasks: [:app:generateDebugSources,
The issue is that the project isn't synced with the gradle files. The resolution I did was go to File > Sync Project with Gradle Files and it was able to sync.
File > Sync Project with Gradle Files