Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue Description

Hello! Thank you for ACRA! I have a small question, could you answer it, please: Is it true that I can’t use both Acra and Instant run? If so is it true that there is a conceptual problem, so it is impossible to achieve this even in future? When I perform code changes I get this: Instant Run applied code changes and restarted the app. The app was restarted since it uses multiple processes. I don’t post any code, because I get this message even in Hello World project (with adding acra as dependency and without adding strings like Acra.init(this))

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

robindijkhofcommented, Mar 9, 2017

I found some way to use ACRA with instant run:

Use releaseCompileinstead of compile for ACRA in your gradle build: releaseCompile 'ch.acra:acra:X.X.X'

You probably have some file called MyApplication where you initialize ACRA. This is the same class you use in your manifest under you application tag. This file is in app/src/main/some/path/to/

  1. Copy this file and paste in app/src/debug/some/path/to/ and app/src/release/some/path/to/
  2. Delete app/src/main/some/path/to/
  3. In app/src/debug/some/path/to/ remove anything that has to do something with ACRA

Now you can use ACRA in you release builds and use instant run during debug.

dima74commented, Mar 9, 2017

@robindijkhof, thank you. I don’t code for android anymore, but anyway it is very good that you find solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Instant Run - Android Studio Project Site
Instant Run is currently available only in Android Studio 2.0, and higher. We will continue to improve the feature in subsequent releases. If...
Read more >
what is Android Studio Instant Run? - Stack Overflow
It's a feature in Android Studio that uses magic to significantly reduce the build and deploy times for incremental code changes during your ......
Read more >
instant-run - platform/tools/base - Git at Google
Instant Run. Objective. Android tools to build applications need to provide a better iterative coding experience. Rather than focusing on rebuilding the ...
Read more >
Instant Run: How Does it Work?!. An Android Tool Time Deep ...
Take Instant Run. It's a feature in Android Studio that uses ✨magic✨ to significantly reduce the build and deploy times for incremental ...
Read more >
A Guide to using Instant Run in Android Studio - Techotopia
A Guide to using Instant Run in Android Studio ... every second spent waiting for an app to compile and run is time...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found