Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Execution failed for task ':app:shrinkReleaseMultiDexComponents'

I'm trying to generate an APK for publication in Google store, but I get 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 do I fix this?

like image 402
viana Avatar asked Nov 03 '15 00:11

viana


1 Answers

This looks like an issue with Progaurd.

Based on these links below it looks like certain Progaurd configurations along with multidex enabled can return this error. Can you try to disable Progaurd?

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

Android multidex not supporting with proguard

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

like image 150
Shmuel Avatar answered Sep 28 '22 12:09

Shmuel