Android App42-必要的Proguard设置(因为调试模式工作,而发布模式失败)
我创建一个查询来检查是否存在新数据。我在调试模式下编译我的应用程序,运行它,一切正常。如果我在发布模式下编译它,我会得到一个Android App42-必要的Proguard设置(因为调试模式工作,而发布模式失败),android,app42,Android,App42,我创建一个查询来检查是否存在新数据。我在调试模式下编译我的应用程序,运行它,一切正常。如果我在发布模式下编译它,我会得到一个NullPointerException 这是否与proguard有关?实际上,我没有为App42找到任何proguard设置 我使用版本3.0.1 Storage storage = storageService.findDocumentsByQueryWithPaging(db, collection, query, 1, 0); storage.getRecordC
NullPointerException
这是否与proguard有关?实际上,我没有为App42
找到任何proguard设置
我使用版本3.0.1
Storage storage = storageService.findDocumentsByQueryWithPaging(db, collection, query, 1, 0);
storage.getRecordCount(); // <= this is NULL!!! But only in RELEASE build
Storage Storage=storageService.findDocumentsByQueryWithPaging(数据库,集合,查询,1,0);
storage.getRecordCount();// 以下proguard设置似乎有效:
-keep class com.shephertz.** {*;}
可能有更好的解决方案,但我找不到任何文档