https://kotlinlang.org logo
#android
Title
# android
n

ngubenson

09/07/2017, 9:27 AM
* What went wrong: Execution failed for task '👢transformClassesAndResourcesWithCustomProguardForRelease'.
java.io.IOException: java.lang.IllegalArgumentException: Stacks have different current sizes [1] and [0]
j

josealfonsomora

09/07/2017, 10:45 AM
@ngubenson We have the same error and was because we added a NotImplementedException() in the code
adding this to progruard
-dontwarn sun.reflect.generics.reflectiveObjects.*
fixed the problem
n

ngubenson

09/08/2017, 3:49 AM
Thanks. I don't have any NotImplementedException() . And I tried to add this to progruard
-dontwarn sun.reflect.generics.reflectiveObjects.*
, but it didn't work.
d

dave08

09/08/2017, 10:04 AM
Try going through all your dependencies one by one looking at their docs to see what needs to be added, or maybe try -keep on all your code and see if its a lib or your code and then start narrowing down slowly adding back. I try to compile w proguard after every dependency I add, since afterwards it becomes very hard...
5 Views