android - Add Ant Library Project into my Gradle project -


i have gradle android project, includes ant library project: https://github.com/pakerfeldt/android-viewflow.

how can include ant library project in build.gradle file? tried added "ant.importbuild 'lib/viewflow/build.xml'" didn't work.

is there missing or mistake here?

thanks

this similar question android-studio-library-not-recognizing-the-android-api.

in viewflow directory you'll need create build.gradle file following content:

buildscript {     repositories {         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.10.+'     } }  apply plugin: 'android-library'  android {     sourcesets {         main {             manifest.srcfile 'androidmanifest.xml'             java.srcdirs = ['src']             res.srcdirs = ['res']         }     }      compilesdkversion 19     buildtoolsversion "19.0.3"      lintoptions {         abortonerror false     }      defaultconfig {         minsdkversion 8         targetsdkversion 19         versioncode 1         versionname "1.0"     } } 

you have option of including generated aar file project's libs folder linked question or can copy viewflow project projects root directory , include module modifying settings.gradle , adding project's dependency section using compile project:

compile project(':viewflow') 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -