当我尝试使用proguard导出apk文件时,这就是我得到的。如果我关闭它导出apk文件。请注意,不是因为其余部分超出了字符数限制
[2014-09-11 20:35:39 - Simplify] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatKitKat: can't find referenced method 'int getLiveRegion()' in class android.view.accessibility.AccessibilityNodeInfo
[2014-09-11 20:35:39 - Simplify] Warning: android.support.v4.view.accessibility.AccessibilityNodeInfoCompatKitKat: can't find referenced method 'void setLiveRegion(int)' in class android.view.accessibility.AccessibilityNodeInfo
[2014-09-11 20:35:39 - Simplify] Warning: android.support.v4.widget.ListPopupWindowCompatKitKat: can't find referenced method 'android.view.View$OnTouchListener createDragToOpenListener(android.view.View)' in class android.widget.ListPopupWindow
[2014-09-11 20:35:39 - Simplify] Warning: android.support.v4.widget.PopupMenuCompatKitKat: can't find referenced method 'android.view.View$OnTouchListener getDragToOpenListener()' in class android.widget.PopupMenu
[2014-09-11 20:35:39 - Simplify] You should check if you need to specify additional program jars.
[2014-09-11 20:35:39 - Simplify] Warning: there were 193 unresolved references to classes or interfaces.
[2014-09-11 20:35:39 - Simplify] You may need to specify additional library jars (using '-libraryjars').
[2014-09-11 20:35:39 - Simplify] Warning: there were 43 unresolved references to program class members.
[2014-09-11 20:35:39 - Simplify] Your input classes appear to be inconsistent.
[2014-09-11 20:35:39 - Simplify] You may need to recompile them and try again.
[2014-09-11 20:35:39 - Simplify] Alternatively, you may have to specify the option
[2014-09-11 20:35:39 - Simplify] '-dontskipnonpubliclibraryclassmembers'.
[2014-09-11 20:35:39 - Simplify] Error: Please correct the above warnings first.
答案 0 :(得分:0)
您有两种选择。最安全的选择是解决Proguard错误,故障排除指南为here。
第二个选项是将-ignorewarnings
添加到您的proguard配置中,该配置仍将打印警告,但无论如何都将允许构建成功。当您的应用程序找不到proguard错误警告您的某些类/方法/字段时,这可能会导致运行时错误,或者可能不会,因为这些错误也可能是由于android运行时版本之间的差异等引起的。 / p>
答案 1 :(得分:-1)
安装新的eclipse版本解决了我的所有问题