Sunday, February 2, 2014

AppCompat GridLayout Eclipse Gradle suport

One of the obstacles in android gradle support for Eclipse before the ADT 23 plugin version is what to do with GridLayout and Appcompat support libs and resources since AAR is not supported in the ADT 22.x plugin versions. Obviously we do not want to degrade to using a path to a jar in the libs folder as a file dependency as than we have no control over the version of the library, etc.

At the same time we want a solution that minimizes the manual labor on the Eclipse side with using gradle as the android application build system. My solution is creating two Android Project Libraries within my nested set of project modules for GridLayout and Appcompat. Not the nicest hack, but its quick and keeps the gradle android best practices intact.