Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.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
Java proguard在发布版本时删除chunktemplate功能 问题描述_Java_Android_Template Engine_Chunk Templates - Fatal编程技术网

Java proguard在发布版本时删除chunktemplate功能 问题描述

Java proguard在发布版本时删除chunktemplate功能 问题描述,java,android,template-engine,chunk-templates,Java,Android,Template Engine,Chunk Templates,Chunk template()功能可正确用于我的调试版本。 如果我使用相同的代码进行发布构建,它就会停止工作。如果我在我的发布版本中禁用proguard,一切都会恢复正常。因此,我确信它的proguard在优化过程中从库中删除了太多内容 当我进行第一次发布构建时,出现了一些关于块模板代码的错误消息。 使用以下progurad语句可以生成发布版本(-dontwarn com.x5.**)。经过一些测试,我发现块模板功能不起作用 我尝试过的语句(来自proguard配置) libraryjars

Chunk template()功能可正确用于我的调试版本。 如果我使用相同的代码进行发布构建,它就会停止工作。如果我在我的发布版本中禁用proguard,一切都会恢复正常。因此,我确信它的proguard在优化过程中从库中删除了太多内容

当我进行第一次发布构建时,出现了一些关于块模板代码的错误消息。 使用以下progurad语句可以生成发布版本(-dontwarn com.x5.**)。经过一些测试,我发现块模板功能不起作用

我尝试过的语句(来自proguard配置)
  • libraryjars/home/ydoganc/projects/contract\u info/libs/chunk\u 2.4/chunk\u template\u 2.4.jar
  • dontwarn com.x5.*#编译时没有错误,但不工作
  • 保持类net.minidev.json.*{*;}
  • 保持类com.x5.template.*{*;}
  • 保持类net.minidev.*{*;}
有没有办法防止proguard处理库罐?看起来proguard不是 执行配置文件要求其执行的操作

proguard的错误消息(在禁用-dontwarn com.x5.*.*…语句后): [2014-10-28 23:33:32-ContractInfoListActivity]Proguard返回了错误代码1。参见控制台 [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.JSONValue [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.JSONValue [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.JSONArray [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.parser.ParseException [2014-10-28 23:33:32-压缩信息列表活动]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.parser.JSONParser [2014-10-28 23:33:32-压缩信息列表活动]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.parser.JSONParser [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.parser.ContainerFactory [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.parser.ContainerFactory [2014-10-28 23:33:32-压缩信息列表活动]警告:com.x5.template.MacroTag:找不到引用的类net.minidev.json.parser.JSONParser [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.filters.Base64DecodeFilter:找不到引用的类sun.misc.BASE64Decoder [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.filters.Base64DecodeFilter:找不到引用的类sun.misc.BASE64Decoder [2014-10-28 23:33:32-CompactInfoListActivity]警告:com.x5.template.filters.Base64DecodeFilter:找不到引用的类sun.misc.BASE64Decoder [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Base64EncodeFilter:找不到引用的类sun.misc.BASE64Encoder [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Base64EncodeFilter:找不到引用的类sun.misc.BASE64Encoder [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Base64EncodeFilter:找不到引用的类sun.misc.BASE64Encoder [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.ParseException [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.ParseException [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.ParseException [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.JEP [2014-10-28 23:33:32-CompactInfo列表活动]警告:com.x5.template.filters.Calc:找不到引用的类org.cheffo.jeplite.ParseException [2014-10-28 23:33:32-ContractInfoListActivity]警告:com.x5.util.ObjectDataMap$MadRobotIntroSector:找不到引用的类com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32-ContractInfoListActivity]警告:com.x5.util.ObjectDataMap$MadRobotIntrospector:找不到引用的类com.madrobot.beans.Introspector [2014-10-28 23:33:32-ContractInfoListActivity]警告:com.x5.util.ObjectDataMap$MadRobotIntrospector:找不到引用的类com.madrobot.beans.Introspector [2014-10-28 23:33:32-ContractInfoListActivity]警告:com.x5.util.ObjectDataMap$MadrobotIntrosector:找不到引用的类com.madrobot.beans.BeanInfo [2014-10-28 23:33:32-合同 [2014-10-28 23:33:32 - ContractInfoListActivity] Proguard returned with error code 1. See console [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.JSONValue [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.JSONValue [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.JSONArray [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.ParseException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.JSONParser [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.JSONParser [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.ContainerFactory [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.ContainerFactory [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.MacroTag: can't find referenced class net.minidev.json.parser.JSONParser [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64DecodeFilter: can't find referenced class sun.misc.BASE64Decoder [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64DecodeFilter: can't find referenced class sun.misc.BASE64Decoder [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64DecodeFilter: can't find referenced class sun.misc.BASE64Decoder [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64EncodeFilter: can't find referenced class sun.misc.BASE64Encoder [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64EncodeFilter: can't find referenced class sun.misc.BASE64Encoder [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Base64EncodeFilter: can't find referenced class sun.misc.BASE64Encoder [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.JEP [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.template.filters.Calc: can't find referenced class org.cheffo.jeplite.ParseException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.Introspector [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.Introspector [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.BeanInfo [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.BeanInfo [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.IntrospectionException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.BeanInfo [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.IntrospectionException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$MadRobotIntrospector: can't find referenced class com.madrobot.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.Introspector [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.Introspector [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.BeanInfo [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.BeanInfo [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.IntrospectionException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.BeanInfo [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.IntrospectionException [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: com.x5.util.ObjectDataMap$StandardIntrospector: can't find referenced class java.beans.PropertyDescriptor [2014-10-28 23:33:32 - ContractInfoListActivity] You should check if you need to specify additional program jars. [2014-10-28 23:33:32 - ContractInfoListActivity] Warning: there were 55 unresolved references to classes or interfaces. [2014-10-28 23:33:32 - ContractInfoListActivity] You may need to specify additional library jars (using '-libraryjars'). [2014-10-28 23:33:32 - ContractInfoListActivity] java.io.IOException: Please correct the above warnings first. [2014-10-28 23:33:32 - ContractInfoListActivity] at proguard.Initializer.execute(Initializer.java:321) [2014-10-28 23:33:32 - ContractInfoListActivity] at proguard.ProGuard.initialize(ProGuard.java:211) [2014-10-28 23:33:32 - ContractInfoListActivity] at proguard.ProGuard.execute(ProGuard.java:86) [2014-10-28 23:33:32 - ContractInfoListActivity] at proguard.ProGuard.main(ProGuard.java:492)
-dontwarn com.x5.**
-keep class com.x5.template.** { *; }
-keep class com.x5.util.** { *; }