Jugg
Jugg - Fast Android Incremental Build Tool See code & resource changes in ~3 seconds—even in large Android codebases.
Install in
See code & resource changes in ~3 seconds—even in large Android codebases.
Jugg is an open-source Android Studio / IntelliJ IDEA plugin developed by me and open-sourced in the Tencent Music Entertainment (TME) GitHub repository. It bypasses heavy Gradle execution chains by leveraging offline bypass compilation, smart impact analysis, and hot reload technologies.
With 5 years of development and battle-tested over 800,000+ builds across multiple apps with tens of millions of DAU, Jugg turns painful minute-long build waits into instant ~3s feedback loops.
Key Features
- 3-Second Incremental Deployment: Experience "Code Change -> Device Refresh" in seconds for daily changes, without waiting for repetitive Gradle configuration and task execution.
- Apply Changes (JVMTI) Hot Reload: Zero-restart hot reloading via JVMTI that updates modified code and resources directly in the running process—gracefully falling back to Hot Fix (app restart without reinstallation) when code swap is inapplicable.
- Zero Intrusion & Seamless Coexistence: No Gradle script modifications and no SDK dependencies required. Jugg Run Configurations coexist with native Android configurations, allowing one-click toggling at any time.
- Broad Tech-Stack Compatibility: Out-of-the-box support for Kotlin, Java, Jetpack Compose, KMP (Compose Multiplatform), DataBinding, ViewBinding, Res/Assets, AndroidManifest, and native
.solibraries. - AI Agent & CLI Integration: Built-in MCP server, CLI, and Agent Skills (
jugg-android-dev-loop) to automate full "Edit -> Compile -> Deploy -> Verify" agentic development loops.
Compatibility Matrix
- Android Studio: 2021 (Bumblebee) ~ 2026 (Rabbit)
- IntelliJ IDEA: 2021.1.3 ~ 2025.1 Beta
- Android Gradle Plugin (AGP): 3.4 ~ 9.1
- Gradle: 5.4.1 ~ 9.2.1
- Kotlin: 1.3 ~ 2.2
- Android OS: Android 8 ~ Android 16
Links & Resources
- GitHub Repository: https://github.com/tencentmusic/jugg
- Documentation & Wiki: https://tencentmusic.github.io/jugg
Written by Joobi from the project's own listing. See the source page
- [feature][compile] Support incremental compilation recovery after IDE restart for multi-git projects without a root git repository (such as repo tool)
- [optimize][deploy] Optimize deployment recovery time for projects with large untracked directories
- [bugfix][compile] Fix style edits not taking effect
- [bugfix][compile] Fix unresolved hidden framework API errors during incremental compilation for library modules
- [bugfix][compile] Fix runtime AbstractMethodError when adding interface default methods and compiling implementing classes in the same round on minSdk < 24
- [bugfix][compat] Fix hot reload failures when adding methods in Android Studio Quail and newer
- [feature][compat] Support Android Studio Stingray
- [feature][ci] Optimize CI build orchestration design to support constant reference analysis
- [optimize][compile] Clean Gradle cache on fallback now runs a real clean task instead of only rerunning tasks
- [optimize][compile] Optimize constant reference analysis cache to share across independent clones and CI environments based on Git remote origin URL
- [bugfix][compile] Fix NoSuchMethodError at runtime caused by inconsistent internal member names when a module configures a custom Kotlin moduleName
- [bugfix][compile] Fix missing recompilations when constant changes occur simultaneously across multiple files
- [bugfix][compile] Fix missing recompilations of callers in other repositories when a constant changes in a multi-git repository project
- [bugfix][compile] Fix source files in sibling directories with shared prefix (such as src and src_test) being misclassified as main source roots
- [bugfix][compile] Fix fallback triggered after commits in projects where root directory has no git but subdirectories do (such as repo tool)
- [bugfix][project] Fix missing compile dependencies for subprojects in composite builds (Included Builds) requiring IDE project data backfill and causing incorrect CI builds
- [bugfix][project] Fix project info reading failure when an inactive App module not participating in the build lacks a runtime classpath
- [bugfix][project] Fix Jugg compilation failure when org.gradle.kotlin.dsl.allWarningsAsErrors is enabled in modern Gradle versions
- [bugfix][compile] Fix missing resource symbols in certain scenarios when adding new resource IDs with android.nonTransitiveRClass=true
- [feature][compile] Support ButterKnife annotations
- [feature][custom install] Support direct commands in custom APK install scripts
- [optimize][compile] (Introduced in 3.6) Optimize compilation time for unannotated source edits by avoiding unnecessary annotation baseline scans
- [optimize][compile] Retain the original root-cause diagnostics when Kotlin compiler internal error recovery fails
- [bugfix][compile] Fix resource incremental linking failures when baseline resource references cannot resolve
- [bugfix][deploy] Fix crashes on Android 17 Pixel devices
- [bugfix][system app] Fix deployment failure for system apps on Windows
- [bugfix][compat] Fix compilation failure in Android Studio Panda caused by incorrect module directory resolution when a module is named main
- [bugfix][compat] Fix KMP module identification failure warnings in Android Studio Quail and Rabbit (non-breaking)
- [feature][compile] Support Windows remote builds with rsync (via Cygwin)
- [feature][ide] Support managing compiled files in the Control Panel
- [optimize][compile] Automatically roll back changed sources when Git HEAD changes
- [optimize][compile] Automatically clean up legacy temporary class files
- [optimize][mcp] Simplify CLI compile and deploy output
- [bugfix][compile] Fix missed changed files in multi-git sub-repository projects
- [bugfix][compile] Fix parent class inaccessible errors when generated Java files (such as AIDL) are empty
- [bugfix][compile] Fix missing hidden API compilation errors for system app projects with custom framework.jar
- [bugfix][compile] Fix ARouter annotation code generation failures on Windows
- [bugfix][compile] Fix Manifest compilation failures in projects with library Test APKs
- [bugfix][compile] Fix incorrect styleable import in AGP 9 and multi-APK scenarios
- [bugfix][compile] Fix missing caller recompilation when top-level facade classes change in Kotlin 2.4
- [bugfix][compile] Fix intermittent androidTest compilation failures caused by missing internal friend paths to module internal declarations
- [bugfix][deploy] Fix crashes on Oppo Android 16 with WebView after deploying resources in specific timing conditions
- [bugfix][deploy] Fix slow JVMTI status detection when deploying unrelated test APKs
- [bugfix][compat] Fix installer lookup errors on certain Android Studio versions missing the IdeInfo class
- [bugfix][cli] Fix file count discrepancies in CLI compile and deploy success messages after triggering rollback
- [feature][settings] Retain internal default backend servers after updating to public plugin releases
- [optimize][compile] Automatically sync generated ARouter sources to IDE source roots to prevent unresolved reference errors
- [feature][compile] Support ARouter annotations with APT/KAPT and KSP1/KSP2 processors
- [bugfix][compile] Fix excessive KAPT compilation time caused by regex backtracking
- [bugfix][settings] Fix failure to load custom compilers when project custom config is missing optional build rule fields
- [feature] Refactor native library hot update into the unified deployment channel, supporting state recovery
- [optimize] Optimize large native library hot update performance with delta transfers and streaming to reduce transfer size and memory usage
- [bugfix] Fix native library updates being skipped after rebuilds produce different content with identical file size
- [feature] Support including project and user info when reporting issues to custom backends, and ensure public uploads remain strictly redacted
- [bugfix] Fix Android sources and resources being misclassified as external native build inputs when located under a Native directory
- [bugfix] Fix native library deployment failure when native libraries or APK exceed 2.1 GB (Int.MAX_VALUE)
- [feature] Support configuring automatic failure log uploads when configuring backend service
- [feature] Support configuring default settings when configuring backend service
- [bugfix] Fix project configuration fetch failure before the first full compilation
- [feature] Support incremental Native .so hot update: skip APK repackaging and reinstallation when only .so files change (takes effect on restart, disabled by default, can be enabled in Settings under 'SO hot update')
- [feature] Support running declared codegen tasks (such as IDL) before C++ incremental native builds and including generated code in incremental compilation
- [feature][compile] Support Kotlin 2.4; fix unresolved extension functions and metadata warnings during incremental compilation in Kotlin 2.4 projects
- [feature][compile] Support symlinks to files outside the project directory in remote build scenarios
- [optimize][compile] Use --no-daemon by default for Gradle fallback builds to reduce resident memory; toggle available in control panel
- [optimize][mcp] Reduce layout-dump read overhead for agents, supporting both interaction and UI modes
- [optimize][ide] Use plain console output for remote commands to avoid escape sequence interference
- [optimize][deploy] Improve deploy stability by automatically retrying on installer socket timeouts
- [optimize][diagnostics] Automatically capture compiler thread dumps when isolated Kotlin incremental compilation times out
- [bugfix][compile] Fix runtime class cast exceptions caused by stale Binding artifacts when identical DataBinding layouts exist across multiple resource roots
- [bugfix][compile] Fix crashes on pages with cross-module DataBinding includes after incremental compile due to unmerged baseline dependency mappers
- [bugfix][compile] Fix ambiguous Module reference errors during incremental compilation of Java code on JDK 9+
- [bugfix][compile] Fix missing caller recompilation when interface constants or Kotlin companion object constants change
- [bugfix][project] Fix memory leak caused by unreleased Git index objects after repository queries
- [bugfix][mcp] Fix missing Compose node content in layout-dump
- [bugfix][mcp] Fix premature UI request timeouts when layout capture is slow on lower-performance devices
- [feature][diagnostics] Support "Ask AI" investigation for compile failures, runtime crashes, or unapplied changes with localized prompts and preserved snapshots
- [optimize][compile] Improve retry guidance after incremental compile failures
- [bugfix][ide] Fix IDE UI freezes on project open while ADB is initializing
- [bugfix][compat] Fix failure to automatically create Run Configurations in Android Studio Narwhal
- [bugfix][compile] Fix crashes on certain pages after hot deploying non-DataBinding layouts when DataBinding is enabled
- [bugfix][compile] Fix occasional deploy failures for DataBinding artifacts
- [bugfix][compat] Fix compatibility with Android Studio Rabbit 2
- [bugfix][compile] Fix duplicate class errors when incrementally compiling Kotlin BindingAdapters
- [bugfix][deploy] Fix deploy failure when switching devices in projects where APK names change on each build
- [feature][ide] Support checking updates from JetBrains Marketplace and GitHub in the Check Updates feature
- [feature][settings] Add "Confirm fallback when too many changes" setting to toggle between automatic fallback and a confirmation prompt when too many files change
- [feature][agent] Support one-click installation for Anti-gravity skills and hooks
- [feature][diagnostics] Preserve historical logs across project clean
- [optimize][ide] Automatically activate the Run window when running a project for the first time
- [optimize][compile] Improve file change detection when running immediately after git pull to avoid missed updates
- [optimize][compile] Accurately report file count in the notification balloon when compiled changes await deployment
- [bugfix][compile] Fix Kotlin compiler initialization failure with Kotlin 2.2 on Quail (JVM 25)
- [bugfix][deploy] Fix startup crash on HarmonyOS 2 devices during compatibility hot-fix mode
- [bugfix][compile] Fix remote compilation failures on Intel Macs
- [bugfix][compile] Fix compilation failure for JVM target modules in KMP projects
- [bugfix][ide] Fix control panel occasionally getting stuck in initializing state
- [feature] Support Android Studio Rabbit
- [feature] Support custom APK signing for system apps requiring remote signatures
- [feature] Support rootless compat deploy for system apps without root or run-as permissions
- [feature] Display fallback reasons and user actions in the Running Panel and logs
- [optimize] Support apps without a regular launcher activity by starting the home activity or stopping directly after deployment
- [optimize] Fix slow project info reading for projects with many modules and dynamic features introduced in 3.5.0
- [bugfix] Fix C++ incremental changes not taking effect or strip tool missing when Configuration on Demand is enabled
- [bugfix] Fix deploy failing with Java heap space after an incremental C++ build due to unstripped symbols
- [bugfix] Prevent unrelated file changes under Native or Flutter roots from falsely triggering external builds
- [bugfix] Fix relative CMake sources and shared native sources not being recognized as incremental inputs or outputs
- [bugfix] Fix incremental runtime crash when a variant disables minify but stale mapping files cause it to be misidentified as requiring obfuscation
- [bugfix] Fix NoSuchFieldError when external AAR dependencies access newly added resources after module resource updates
- [feature] Support Flutter and C++ source changes: run Gradle tasks to generate native libraries, then continue with Jugg incremental builds
- [feature] Support incremental updates for system apps
- [feature] Support Hilt: preserve injection during incremental source updates to avoid crashes
- [feature] Support custom APK install scripts
- [optimize] Show a concise warning when Dex compilation falls back
- [optimize] Reduce latency on the self-built deploy channel
- [bugfix] Restore Bumblebee run configuration lookup and naming
- [bugfix] Fix Marketplace listing issues by removing incompatible APIs and updating Gradle sync handling
- [bugfix] Prevent profile builds from using debug task metadata
- [bugfix] Support calling ROM hidden APIs by retrying with a postponed android.jar when Kotlin incremental compile fails
- [bugfix] Fix rare clean failures after Java compilation on Windows
- [bugfix] Fix compile failure on AGP 8.8.0
- [bugfix] Fix rare Android Studio Quail cases where resource deploy does not take effect and a restart is required
- [bugfix] Fix incremental ViewBinding failure on AGP 4.2.2 runtimes
- [bugfix] Fix missing Kotlin opt-in arguments when KMP common sources use @HiddenFromObjC
- [bugfix] Fix KMP Compose resource changes requiring two restarts to take effect on the first compile with Android 15+, Android Studio older than Meerkat, and Kotlin 2.1+🤣
- [feature] Include optional project snapshots in issue reports
- [optimize] Prefer the too-many-files fallback prompt over build file diff
- [optimize] Reduce init time when large worktrees contain many untracked files
- [optimize] Prevent Gradle compile failures when PATH is incomplete
- [bugfix] Fix Gradle 5/6 compile failure in 3.4.2
- [bugfix] Fix unreplaced library placeholders in AndroidManifest.xml
- [bugfix] Fix Gradle task generation for module names that contain a dot
- [bugfix] Prevent Marketplace verifier rejection on supported IDEs
- [bugfix] Switch Jugg profile for uppercase build variants
- [bugfix] Prevent runtime-only dependency updates from using old code
- [bugfix] Show backend unavailable when update check has no server
- [bugfix] Prevent Gradle fallback from failing when gradlew lacks execute permission
- [bugfix] Prevent builds from failing for project paths with spaces
- [bugfix] Prevent mapper failure for dependency module binding adapters
- [bugfix] Prevent Gradle fallback from failing for Windows paths with spaces
- [feature] Change the plugin ID to support Marketplace listing
- [bugfix] Show the non-debuggable package cause on deploy failure
- [bugfix] Prevent incremental Kotlin compile failure when plugins require options
- [bugfix] Prevent APK updates from failing on paths with shell characters
- [bugfix] Prevent release R8 builds from failing on Dragonfly missing classes
- [bugfix] Prevent compiler plugin options from breaking incremental builds
- route ASUS devices to compatibility deployment to avoid standard deployment failures
- prevent KMP typealias and cross-module reference failures when IDE project edges or Android build outputs are incomplete
- expose Gradle dependency merge diagnostics for missing or ambiguous module edges
- keep embedded APKs intact and avoid false failures when signing or verification needs a fallback JDK
- publish a directly downloadable dev package for any manually selected branch with ref-specific release notes
- preserve application lifecycle callbacks registered after the bootstrap application hands off to the real application
- use the owning APK variant minSdk for incremental and minified dex desugaring
- support the Windows Python launcher when starting the Jugg CLI
- keep DataBinding enabled after Gradle project information is reloaded
- prevent DataBinding include type errors when incremental layout information is unavailable
- support Java APT DataBinding projects when KAPT mapper baselines are absent
- prevent stale generated DataBinding sources from breaking later incremental builds
- prevent jvmti_agent resource packaging failures on reused Gradle daemons
- report the missing Gradle baseline clearly on first run
- prevent APK installation failure on Android Studio Quail 4
- keep Kotlin compilation working after IDE file system conflicts
- prevent isolated Kotlin compilation failures on large projects
- prevent compatibility deployment from repeatedly failing after heap exhaustion
- show all diagnostics in the default report dialog
- compile androidTest sources with project dependencies
- preserve app APKs when running library androidTest
- show compile status when no-change runs deploy directly
- prevent unresolved resource IDs from same-named files in multiple roots
- fall back directly after a failed Gradle build without repeating the large-change confirmation
- preserve custom Jugg run configurations during Gradle sync
- stop rebuilding the source database repeatedly after restart
- ask before falling back to Gradle when too many files change
- stop status queries from repeatedly showing too-many-files fallback warnings
- recompile implementation classes after interface parent changes
- prevent runtime type crashes after generic member changes
- find AndroidTest APKs when apps use custom deploy paths
- manage legacy Jugg optio
Follow this listing's changes (Atom feed)