Optimizing Android Builds with Self-Hosted Nexus Repository

In Android dependency management, it’s common to configure multiple remote repositories like jcenter, jitpack, google(), and more. Some large projects, such as “Zuiyou”, depend on over 10 repositories. This becomes a significant problem during initial project setup, dependency changes, or network issues — troubleshooting builds becomes a nightmare. I had noticed this issue long ago but kept putting off addressing it. This post documents the Nexus setup process. Installing and Configuring Nexus Prerequisite: JDK 8+. ...

December 31, 2019 · 2 min · haoxiqiang

Android Resource Shrinking

While building a project, I discovered the shrinkResources attribute, which removes unused resources from the APK. Here is how to configure it and what to watch out for. ...

December 23, 2015 · 2 min · haoxiqiang