WEB开发网
开发学院手机开发Android 开发 Android中proguard的作用 阅读

Android中proguard的作用

 2012-08-08 12:12:05 来源:WEB开发网   
核心提示: 这两天在手机设置里面需要添加一个设置项,可是在所有代码都添加好之后,Android中proguard的作用,点击该设置项时,一直报错

 这两天在手机设置里面需要添加一个设置项,可是在所有代码都添加好之后,点击该设置项时,一直报错,log为:

08-08 10:51:50.622 E/AndroidRuntime( 3169): FATAL EXCEPTION: main
08-08 10:51:50.622 E/AndroidRuntime( 3169): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: android.app.Fragment$InstantiationException: Unable to instantiate fragment com.android.settings.AppPreferInstallLocation: make sure class name exists, is public, and has an empty constructor that is public
08-08 10:51:50.622 E/AndroidRuntime( 3169): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at android.app.ActivityThread.access$600(ActivityThread.java:123)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at android.os.Handler.dispatchMessage(Handler.java:99)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at android.os.Looper.loop(Looper.java:137)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at android.app.ActivityThread.main(ActivityThread.java:4424)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at java.lang.reflect.Method.invokeNative(Native Method)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at java.lang.reflect.Method.invoke(Method.java:511)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
08-08 10:51:50.622 E/AndroidRuntime( 3169): at dalvik.system.NativeStart.main(Native Method)

1 2 3  下一页

Tags:Android proguard 作用

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接