question-mark
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.

Multidex support with instant run

See original GitHub issue

Hi,

Does this plugin support multidex ? With the following configuration I end up with an empty (with ressources but no class) APK :

com.android.tools.build:gradle:2.2.3
com.github.Archinamon:GradleAspectJ-Android:2.2.2
compileSdkVersion = 25
buildToolsVersion = '25.0.1'
minSdkVersion = 21
targetSdkVersion = 25

Btw I am using java 7 sources and Proguard is disable.

When I disable the plugin, the multidex is working, giving me an normal apk.

Using Aspectj plugin without Transform API (like this one or the one from this plugin) seems to works with Multidex.

Thanks for the support and let me know if you need further info.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Archinamoncommented, Dec 21, 2016

I’ll post update as soon as I find the solution for InstantRun support. Thanks for your feedback! Feel free to post any issues or questions you’ll face with.

0reactions
Archinamoncommented, Jan 16, 2017

Jar merger was the rudiment code, that was needed for proper work of proguard before gradle 2.2; but now this behavior leads to incorrect packaging of outputs and instantrun doesn’t slice jars, only app code. So because of aspectj slicer thought no application code was available and strips nothing into spk 😄 I’m happy we finally found the logic of this behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enable multidex for apps with over 64K methods
Learn how to enable an app configuration known as multidex, which allows your app to build and read multiple DEX files.
Read more >
Understanding and Solving the Multidex Problem in Android
This article will help readers understand the multidex problem in Android. This issue can be solved using R8 for code shrinking or the ......
Read more >
Multidex error:- Unable to instantiate application android ...
Navigate to Build, Execution, Deployment > Instant Run. Uncheck the box next to Enable Instant Run. Share. Share a ...
Read more >
Android Multidex support · flutter/flutter Wiki - GitHub
Multidex support. Flutter supports automatic multidex error detection and support for apps targeting API 20 and below. When apps fail to build ...
Read more >
Multidex in Android - GeeksforGeeks
What is a DEX file? ... Now we know the source code is converted into a DEX (Dalvik Executable) file which can run...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found