Instant run
See original GitHub issueIssue 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:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found some way to use ACRA with instant run:
Use
releaseCompile
instead ofcompile
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 inapp/src/main/some/path/to/MyApplication.java
app/src/debug/some/path/to/MyApplication.java
andapp/src/release/some/path/to/MyApplication.java
app/src/main/some/path/to/MyApplication.java
app/src/debug/some/path/to/MyApplication.java
remove anything that has to do something with ACRANow you can use ACRA in you release builds and use instant run during debug.
@robindijkhof, thank you. I don’t code for android anymore, but anyway it is very good that you find solution.