只要在build.gradle
中启用multidex支持,我就会在应用启动时收到以下错误。
Could not find class '...Dao', referenced from method com.dao.DaoMaster.<init>
FATAL EXCEPTION: main
java.lang.VerifyError: com/dao/DaoMaster
at com.dao.DaoMaster$OpenHelper.onCreate(DaoMaster.java:57)
答案 0 :(得分:1)
This answer帮助我找到了解决方案。
要解决此问题,我已更改
public class MyApplication extends Application
到
public class MyApplication extends MultiDexApplication