How to fix the android environment setting issues?

Friends,
I installed SDK and gradle . Now when i try to build got error as

Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not download support-annotations.jar (com.android.support:support-annotations:27.1.0)
   > Could not get resource 'https://maven.google.com/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar'.
      > Could not GET 'https://maven.google.com/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar'.
         > maven.google.com: Temporary failure in name resolution
> Could not download common.jar (android.arch.lifecycle:common:1.1.0)
   > Could not get resource 'https://maven.google.com/android/arch/lifecycle/common/1.1.0/common-1.1.0.jar'.
      > Could not GET 'https://maven.google.com/android/arch/lifecycle/common/1.1.0/common-1.1.0.jar'.
         > maven.google.com
> Could not download common.jar (android.arch.core:common:1.1.0)
   > Could not get resource 'https://maven.google.com/android/arch/core/common/1.1.0/common-1.1.0.jar'.
      > Could not GET 'https://maven.google.com/android/arch/core/common/1.1.0/common-1.1.0.jar'.
         > maven.google.com

Please help
I am using ubuntu 16.04

Thanks

Anes

try this: How to fix the android environment setting issues?