USing Android Studio 2
 I get this error while compiling the code

Gradle: Execution failed for task ':dummy002:compileDebug'.

> 
> Compilation failed; see the compiler error output for details.
>  C:\Android\_XML\dummy002Project\dummy002\src\main\java\com\example\dummy002\MainActivity.java\
>  Gradle: package com.google.ads does not exist
> 
> 
> 

I have add the file
GoogleAdMobAdsSdk-6.4.1.jar in the lib directory and also as library file.

When coding the code does not show any error highlight.

If I use the AdView in Actitvity the preview in studio show banner ads by google.

Where am I going wrong.