Gradle Android Studio Integration

Viewed 3144

Does anyone has any good step by step tutorial for integrating gradle with android studio. I am following this official google docs for setting up gradle:

http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Simple-build-files and so far gradle keeps complaining at each step. I am not even sure about how the build.gradle file should look like for a simple hello world application. This is my current build.gradle file:

buildscript {
    repositories {
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:0.5.6'
    }
}

apply plugin: 'android'

android {
    compileSdkVersion 17
}
android {
    buildToolsVersion "17.0"
    compileSdkVersion 17
}

Gradle is throwing the following error:

 Error Code:
    1
  Output:
    /Users/xxx/Downloads/MyApplication/App/build/res/all/debug/values/values.xml:12: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.

I am a newbie with respect to gradle. Any help is appreciated. Thanks

2 Answers
Related