与gson库的proguard崩溃

时间:2014-03-18 01:43:24

标签: android jar proguard

使用proguard并且应用程序在启动时崩溃,添加了正确的行以使用添加的gson库修复此问题

 -libraryjars /libs/gson-2.2.4.jar

它没有用,我甚至为android-support-v4.jar添加了它并没有改变,即使我没有使用支持库,这个jar在/ libs文件夹中所以我做了同样的这个文件没有变化,应用程序仍然在启动时崩溃。

-libraryjars /libs/android-support-v4.jar

如何将jar添加到像gson-2.2.4.jar这样的项目中,仍然可以让应用程序与proguard一起使用?

proguard_project.txt的完整代码

# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}
-libraryjars /libs/gson-2.2.4.jar
-libraryjars /libs/android-support-v4.jar

0 个答案:

没有答案