Android studio and external pure java project

hi, i have this pure java (single) eclipse project with a build.gradle that works fine.

i use gradle to make pure.jar

i have this simple android project that needs the jar. so i copy pure.jar into the android app’s libs folder, add it as a library and it works fine.

i would like to automate this my modifying the android studio build.gradle.

here is a more complicated example of what i need and another example.

assuming that i can import the pure java project into android studio, how can i automate the build of the android project?

mostly i would like to automate the copying of the jar file. i don’t mind rebuilding the jar.


i have the pure java project in android studio now.


found a real easy way to do this (at least for having one project depend on another).