Note that there are some explanatory texts on larger screens.

plurals
  1. POState of Android project dependency management
    text
    copied!<p>We are standardizing our infrastructure for Android development and we are trying to incorporate dependency management to our Android library projects. My current track is using the maven android plugin with <a href="http://rgladwell.github.com/m2e-android/" rel="nofollow noreferrer">m2e-android</a>. We have uploaded the Android artifacts to our Artifactory repository with the <a href="https://github.com/mosabua/maven-android-sdk-deployer" rel="nofollow noreferrer">Android SDK Deployer</a>. We also have an internal framework with a few libraries we can import into our projects and for most part it works fine.</p> <p>The issue we are facing now is that apklib dependencies containing resource files are hard to set up. The maven plugin can correctly configure the classpath but if the apklib has resource files that needs to be referenced by the parent Android project, Eclipse is unable to find them unless you checkout the Library Project and link it to the parent project through ADT.</p> <p>After reading m2e-android discussion on issue <a href="https://github.com/rgladwell/m2e-android/issues/8" rel="nofollow noreferrer">https://github.com/rgladwell/m2e-android/issues/8</a>, <a href="https://stackoverflow.com/questions/6269816/creating-closed-source-android-libraries#answer-6270768">https://stackoverflow.com/questions/6269816/creating-closed-source-android-libraries#answer-6270768</a> and <a href="https://stackoverflow.com/questions/8831481/apklib-does-not-get-installed-in-maven-repo">APKLIB does not get installed in Maven Repo</a>, I'm not convinced maven is the way to go until ADT properly support closed source apk libraries.</p> <p>I'd like to know how are you handling these kind of dependencies on your Android projects. What strategies are there other than using Maven?</p> <p>For reference, here's what we have tried so far.</p> <ol> <li>No dependency management. All required jars are stored into the lib folder and pushed to the source control repo. Library projects are set up as subfolders and pushed to the source control repo for each project they are used in. Eclipse project settings are also pushed. Project built with standard ADT Ant script.</li> <li>Jar dependencies into libs folder and library dependencies as git submodules. Project built with standard ADT Ant script.</li> <li>Dependency management with maven, including library projects with apklib packaging. Issue with resource files in apklibs.</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload