Skip to content

Run an app ​

During everyday development, click Jugg Run after changing code or resources. You do not need to run compilation and deployment separately. Jugg saves files, evaluates the changes, updates the device, and launches the app.

When to click Run directly ​

Jugg Run is suitable when:

  • You changed common files such as Java / Kotlin method bodies, layouts, drawables, values, or assets.
  • You want to verify the app on a device immediately after making a change.
  • You are unsure whether the change can be handled incrementally and want Jugg to decide.
  • You want Jugg to fall back to Gradle automatically when necessary instead of switching workflows manually.

Prepare for a Gradle comparison or an additional action when:

  • You just switched branches, pulled many changes, or modified the Gradle plugin or dependency configuration.
  • You need to clear app data and reinstall.
  • You are verifying a release build, annotation processing, bytecode instrumentation, or the complete Gradle pipeline.

You can still start with Jugg Run in these cases, but be ready to accept a Gradle fallback or use Clear app data or Fall back to Gradle compilation directly.

How to run from Android Studio ​

  1. Confirm that the selected Run Configuration is a Jugg configuration, not a native App configuration.
  2. Select the target devices. A normal Run supports multiple devices; Debug supports only one.
  3. Save your changes, or wait for Jugg to save them automatically.
  4. Click Run, or use the shortcut assigned to the Run action by the current Android Studio Keymap.
  5. Check the result in the Run tool window.

The shortcut comes from the Android Studio Keymap and can vary by operating system, Keymap, and personal settings. If you are unsure, search for Run under Settings / Preferences > Keymap to see the current shortcut.

If you click Debug, the first part uses the same run flow: Jugg compiles and deploys first, then restarts the app in debug mode and lets the native Android Studio debugger attach.

What happens after you click Run ​

text
Jugg Run
  -> Save files and refresh file state
  -> Check devices, installation state, and file changes
  -> Try incremental compilation first
  -> Prompt for or fall back to Gradle when necessary
  -> Deploy automatically after compilation succeeds
  -> Choose Hot Reload, Hot Fix, installation, or restart based on the changes
  -> Print the result of this run

Compilation and device updates are internal stages. In everyday use, check the final result in the Run tool window before deciding whether to restart, clear app data, or fall back to Gradle.

Interpret the result ​

ResultMeaningNext step
Jugg HOT_RELOAD SUCCESSFULThe change has taken effect without restarting the app in most casesVerify it on the current screen
Jugg HOT_FIX SUCCESSFULThe change was delivered and will take effect after the app restartsWait for App restarted., then verify it
Gradle BUILD_AND_INSTALL SUCCESSFULThis run used a full Gradle build and installationContinue using Jugg Run for subsequent small changes
Jugg INSTALL SUCCESSFULThis run installed an artifact produced by JuggWait for the app to launch, then verify it
Clean Reinstall succeededApp data was cleared, the APK was reinstalled, and Jugg deployment state was restoredNavigate back to the screen you need to verify
Compilation succeeded but deployment failedThe code compiled, but device deployment or launch failedCheck the device connection, compatibility mode, and deployment logs
No file changes detectedJugg did not find any changes it can processConfirm that files are saved; Sync or compare with Gradle if necessary

Where to view the run duration ​

The final success headline in the Run tool window includes the total duration, for example:

text
Jugg HOT_RELOAD SUCCESSFUL in 3s.
Gradle BUILD_AND_INSTALL SUCCESSFUL in 42s.

The current run status and Recent runs in the Jugg Control Panel also show the duration. This is the duration of the complete run, not only the compilation stage.

When to use another entry point ​

What you want to doRecommended entry point
Clear app data and reinstallClear app data
Run one full Gradle buildFall back to Gradle compilation / jugg gradle-build
Enter a breakpoint immediately after a changeDebug
Run src/androidTestTest gutter icon or Android Test Run Configuration
Trigger a run from an agent or scriptjugg deploy or Jugg CLI Guide
Restart an app that did not restart after you changed startup initialization logicRestart the app

NOTE

Hot Reload does not re-execute all previously initialized logic. After changing startup logic, singleton caches, static / companion members, or Kotlin top-level declarations, restart the app even if the run reports Hot Reload.

Where to look first ​

SymptomFirst check
No Jugg output after RunConfirm that the Run Configuration is a Jugg configuration
Compilation failedSee Compilation failed
The run succeeded but the change did not take effectSee Changes did not take effect
The app cannot install, launch, or enter DebugSee The app cannot install, launch, or enter Debug
The app crashes after deploymentSee The app crashes after deployment
Build or run is stuck / unresponsiveSee Jugg slow or stuck

If these recovery actions do not resolve the problem, use Report an issue to upload the diagnostic data.