Upgraded to Android Studio 0.2.0 and got the following error. The error got resolved after applying suggested solution but now the following error appeared.
Inspired by the answer from @Dhafer.Dhib to check the installed gradle version, I want to add: The recommended way to install gradle under linux is using sdk, see https://gradle.org, I did the following steps:
sudo apt install zip ## zip required by SDKman, see http://sdkman.io/
## do the following steps as the user who wants to use the tools NOT root!
curl -s "https://get.sdkman.io" | bash ## SDKman recommended option to install *up-to-date* gradle, see https://gradle.org/install/
source "/root/.sdkman/bin/sdkman-init.sh" ## set env to use sdk without opening a new shell
sdk install gradle 4.6
gradle -v