Android studio 2.0 gradle transformClassesWithDexForDebug fails when using button “run”

后端 未结 14 2009
被撕碎了的回忆
被撕碎了的回忆 2020-12-25 11:21

I have a problem after migration from android studio 1.5 to 2.0

In one of my project (only one) i can\'t use android studio run button,

because then, build

14条回答
  •  春和景丽
    2020-12-25 12:10

    attempt to set or access a value of type java.lang.Object using a local variable of type int

    Seems like in some place ProGuard optimizes variable allocation, but does it incorrectly.

    Try to disable this optimization by adding the line below in your proguard-rules.pro:

    -optimizations !code/allocation/variable

提交回复
热议问题