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.

Dexcount task is not called for abi split assemble tasks

See original GitHub issue

I have split for native libs in my app:

splits {
    abi {
        enable true
        reset()
        include 'armeabi', 'x86', 'x86_64'
        universalApk false
    }
}

When I’m trying to assemble specific task, dex count is not executed, i.e.:

$ gradlew assembleArmeabiRelease

However it is working fine when I call

$ gradlew assembleRelease

but now it also going to assemble 2 other apk’s, which would be great to avoid doing.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
benjamin-badercommented, Dec 13, 2016

Hm, I knew that it didn’t work properly with splits but I haven’t seen this kind of failure before!

Thanks for reporting, and for the detailed repro steps; I’ll have time to investigate in a few more days.

0reactions
benjamin-badercommented, Apr 5, 2020

I’ll assume this is resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build task per ABI not working on Gradle plugin 3.0.1?
Yes, all of them! Only the build per ABI task is not working. I never knew there were per-ABI tasks when using splits....
Read more >
Dexcount Gradle Plugin
A Gradle plugin to report the number of method references in your APK, AAR, or java module on every build. This helps you...
Read more >
Authoring Tasks - Gradle User Manual
Task has actions and Gradle has determined they should be executed as part of a build. Task has no actions and some dependencies,...
Read more >
Custom Tasks - Gradle Recipes for Android [Book] - O'Reilly
You want to call your custom tasks as part of an overall build process. Solution. Use the dependOn property to insert your task...
Read more >
AGP 4.1, Gradle 6.7: mergeDebugNativeLibs is not up to date ...
gradlew clean <target> --no-build-cache , but the up-to-date status of this task is random. Note 2: when running with --rerun-tasks we can see...
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