eleme / Amigo

A hotfix library for Android platform, and not just this...
Other
1.36k stars 213 forks source link

android studio 2.3,amigo升级到0.6.6后,debug包出现以下错误,release包正常 #231

Closed fengfutong closed 7 years ago

fengfutong commented 7 years ago

Caused by: java.lang.NullPointerException: Cannot invoke method entries() on null object at me.ele.amigo.AmigoPlugin.collectMultiDexInfo(AmigoPlugin.groovy:150) at me.ele.amigo.AmigoPlugin$_apply_closure1$_closure5$_closure7$_closure10.doCall(AmigoPlugin.groovy:114) at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:596) at org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:577) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:95) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:76)

如果在debug状态下,就会出现上面的bug。但如果在debug状态下,将minifyEnabled 设置为true,那么就不会报这个错误。我该怎么解决呢? 以下是更完整的信息:

BUILD FAILED

JackCho commented 7 years ago

请使用gradle 2.14.1或者demo里面的3.4