从谷歌播放崩溃

时间:2013-06-20 16:12:33

标签: android crash

在最后一天我将我的应用推向谷歌播放,我从谷歌播放开发者控制台的某个用户那里得到了这个崩溃

java.lang.RuntimeException: Unable to start activity ComponentInfo{alhazmy.Balot_Calculator/alhazmy.Balot_Calculator.MainActivity}: android.view.InflateException: Binary XML file line #32: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2669)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2685)
at android.app.ActivityThread.access$2300(ActivityThread.java:126)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2038)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4633)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class com.actionbarsherlock.internal.widget.ActionBarView
at android.view.LayoutInflater.createView(LayoutInflater.java:513)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:621)
at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.generateLayout(ActionBarSherlockCompat.java:1010)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.installDecor(ActionBarSherlockCompat.java:902)
at com.actionbarsherlock.internal.ActionBarSherlockCompat.setContentView(ActionBarSherlockCompat.java:855)
at com.actionbarsherlock.ActionBarSherlock.setContentView(ActionBarSherlock.java:671)
at com.actionbarsherlock.app.SherlockFragmentActivity.setContentView(SherlockFragmentActivity.java:272)
at alhazmy.Balot_Calculator.MainActivity.onCreate(MainActivity.java:24)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2633)
... 11 more
Caused by: java.lang.reflect.InvocationTargetException
at com.actionbarsherlock.internal.widget.ActionBarView.<init>(ActionBarView.java:174)
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
at android.view.LayoutInflater.createView(LayoutInflater.java:500)
... 25 more
Caused by: java.lang.NoClassDefFoundError: com.actionbarsherlock.R$attr
... 29 more

任何人都可以帮助我如何解决这个崩溃

1 个答案:

答案 0 :(得分:1)

您似乎错过了包中的SherlockActionbar库

可能是https://code.google.com/p/android/issues/detail?id=55304造成的问题?

对于所有项目(应用程序和库):

  1. 右键单击该项目,然后选择“属性”
  2. 转到Java Build Path-Order and Export。
  3. 勾选'Android私人图书馆'