Error: execution completed for task ': app: shrinkReleaseMultiDexComponents'

I am trying to create an APK for publication on the Google store, but I am getting the following error:

Error:Execution failed for task ':app:shrinkReleaseMultiDexComponents'. java.io.IOException: The output jar [/home/nome/Projects/app-android/app/_app/build/intermediates/multi-dex/release/componentClasses.jar] must be specified after an input jar, or it will be empty. 

How to fix it?

+6
source share
1 answer

It looks like a problem with Progaurd.

Based on these links below, it looks like some Progaurd configurations along with multidex support may return this error. Can you try disabling Progaurd?

Android Build with Gradle and ProGuard: "The output jar should be specified after the input jar, or it will be empty"

Android multidex does not support with proguard

https://groups.google.com/forum/#!topic/adt-dev/qU0Me1_2HF8

+1
source

All Articles