Lynxbee topic

Android Gradle Plugin

Articles about Android Gradle Plugin.

Build an Android AAR Library That Is Ready to Share

Creating an Android library module is the easy click. Making its AAR safe for another app requires a deliberate API, resource and manifest hygiene, consumer shrinker rules, compatibility metadata, tests, and a distribution path that preserves dependencies.

Connect Android Library Modules with Gradle

A library module can depend on another module with one Gradle project dependency. The important design choice is whether the dependency remains an implementation detail or becomes part of your public API—and how that relationship survives publication.

Add a Local AAR Dependency to an Android Project

A precompiled AAR can be linked directly from an app module, but the file carries no Maven dependency metadata. Here is the clean Gradle setup, plus the checks that prevent missing classes, resource conflicts, native ABI surprises, and release-only failures.

Fix “Invoke-customs” Android min-api 26 Build Error

This dex error usually means a module or dependency emits Java 8 invocation bytecode without compatible desugaring. First configure the module correctly; if the failing code calls MethodHandle.invoke, use the API-26-safe path instead of masking the problem.

Fix “No Toolchains Found” Android NDK Error

The mips64el toolchain error usually means an old Android Gradle Plugin or native build expects files removed from newer NDKs. Diagnose the version boundary, modernize the build, and use a legacy NDK only as a controlled archival fallback.

Fix “buildOutput.apkData must not be null” Safely

The internal `buildOutput.apkData must not be null` exception belongs mainly to older Android Studio 3.5-era builds. A project-local clean often repaired stale APK metadata, but modern diagnosis should first identify the exact Gradle wrapper, Android Gradle Plugin, JDK, IDE, task, and plugin combination.

Engineering weekly

Useful technical knowledge, not inbox noise.

Receive verified fixes, references, labs, and tools. Confirm by email; unsubscribe any time.