 <p>I am using Android Studio 0.8.1. I have a project's gradle file like below:</p> <pre><code>android { compileSdkVersion 19 buildToolsVersion "20.0.0" defaultConfig { applicationId "com.omersonmez.widgets.hotspot" minSdkVersion 15 targetSdkVersion 19 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } </code></pre> <p>My emulator was android 4.0. So i modified my emulator and made api level 4.0.3(apilevel 15). It worked. </p>