xdx1399513637
ni看我屌不
2016-07-12 10:56
采纳率: 92.9%
浏览 1.1k
已采纳

程序运行出错,求帮助

07-12 18:54:22.640: E/AndroidRuntime(28125): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.cards/com.example.cards.MainActivity}: android.view.InflateException: Binary XML file line #70: Error inflating class
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2247)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.access$800(ActivityThread.java:139)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.os.Handler.dispatchMessage(Handler.java:102)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.os.Looper.loop(Looper.java:136)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.main(ActivityThread.java:5028)
07-12 18:54:22.640: E/AndroidRuntime(28125): at java.lang.reflect.Method.invokeNative(Native Method)
07-12 18:54:22.640: E/AndroidRuntime(28125): at java.lang.reflect.Method.invoke(Method.java:515)
07-12 18:54:22.640: E/AndroidRuntime(28125): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)
07-12 18:54:22.640: E/AndroidRuntime(28125): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:604)
07-12 18:54:22.640: E/AndroidRuntime(28125): at dalvik.system.NativeStart.main(Native Method)
07-12 18:54:22.640: E/AndroidRuntime(28125): Caused by: android.view.InflateException: Binary XML file line #70: Error inflating class
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.createView(LayoutInflater.java:623)
07-12 18:54:22.640: E/AndroidRuntime(28125): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:672)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:697)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.rInflate(LayoutInflater.java:758)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.inflate(LayoutInflater.java:495)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.inflate(LayoutInflater.java:400)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
07-12 18:54:22.640: E/AndroidRuntime(28125): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:290)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.Activity.setContentView(Activity.java:1939)
07-12 18:54:22.640: E/AndroidRuntime(28125): at com.example.cards.MainActivity.onCreate(MainActivity.java:54)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.Activity.performCreate(Activity.java:5241)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)
07-12 18:54:22.640: E/AndroidRuntime(28125): ... 11 more
07-12 18:54:22.640: E/AndroidRuntime(28125): Caused by: java.lang.reflect.InvocationTargetException
07-12 18:54:22.640: E/AndroidRuntime(28125): at java.lang.reflect.Constructor.constructNative(Native Method)
07-12 18:54:22.640: E/AndroidRuntime(28125): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.view.LayoutInflater.createView(LayoutInflater.java:597)
07-12 18:54:22.640: E/AndroidRuntime(28125): ... 27 more
07-12 18:54:22.640: E/AndroidRuntime(28125): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x3
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:464)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.widget.TextView.(TextView.java:975)
07-12 18:54:22.640: E/AndroidRuntime(28125): at android.widget.TextView.(TextView.java:618)
07-12 18:54:22.640: E/AndroidRuntime(28125): ... 30 more

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • xyrmgzt
    xyrmgzt 2016-10-04 11:01
    已采纳

    mple.cards/com.example.cards.MainActivity}: android.view.InflateException: Binary XML file line #70: Error inflating class
    07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2247)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.access$800(ActivityThread.java:139)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at android.os.Handler.dispatchMessage(Handler.java:102)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at android.os.Looper.loop(Looper.java:136)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at android.app.ActivityThread.main(ActivityThread.java:5028)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at java.lang.reflect.Method.invokeNative(Native Method)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at java.lang.reflect.Method.invoke(Method.java:515)
    07-12 18:54:22.640: E/AndroidRuntime(28125): at co

    点赞 评论

相关推荐