- 
      
 - 
        
Save rmad17/d0eb41268de5c8ed9035 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
Pierry created this gist
Nov 22, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ apply plugin: 'com.android.application' android { compileSdkVersion 21 // verify current sdk buildToolsVersion '20.0.0' // verify tools version defaultConfig { applicationId 'your complete package - equal manifest' minSdkVersion 11 targetSdkVersion 21 versionCode 1 versionName "1.0" } buildTypes { release { runProguard false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } repositories { mavenCentral() } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.0' } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ buildscript { repositories { mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:0.12.2' classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' } } repositories { mavenCentral() mavenLocal() } apply plugin: 'com.android.application' apply plugin: 'android-apt' def AAVersion = '3.1' dependencies { compile 'com.android.support:appcompat-v7:21.0.0' // Important apt "org.androidannotations:androidannotations:$AAVersion" compile "org.androidannotations:androidannotations-api:$AAVersion" compile fileTree(dir: 'libs', include: '*.jar') } apt { arguments { androidManifestFile variant.processResources.manifestFile resourcePackageName 'your complete package - equal manifest' } } android { compileSdkVersion 21 // verify current sdk buildToolsVersion '20.0.0' // verify tools version defaultConfig { minSdkVersion 11 targetSdkVersion 21 } sourceSets { main { manifest.srcFile 'app/src/main/AndroidManifest.xml' java.srcDirs = ['app/src/main/java', 'build/generated/source/apt/${variant.dirName}'] resources.srcDirs = ['app/src/main/res'] res.srcDirs = ['app/src/main/res'] assets.srcDirs = ['assets'] } } }