Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/197.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android App42-必要的Proguard设置(因为调试模式工作,而发布模式失败)_Android_App42 - Fatal编程技术网

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.** {*;}
可能有更好的解决方案,但我找不到任何文档