java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1


出现Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1异常时,折腾了一段时间发现是dimens的值没有在默认dimens目录中定义。当旋转屏幕时,找不到值造成的问题。


07-22 10:39:28.968: E/BufferQueue(1049): [com.android.launcher2.Launcher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
07-22 10:39:31.488: E/MediaExtractor(1053): Create: firstly choose to use android extractor !!! isStreamFlag: false
07-22 10:39:31.488: E/WVMExtractor(1053): Failed to open libwvm.so
07-22 10:39:31.488: E/MediaExtractor(1053): Autodetected media content as 'application/ogg' with confidence 0.20
07-22 10:39:31.498: E/ActAudioExtractor(1053): ActAudioExtractor: total_time zero = 0
07-22 10:39:31.498: E/ActAudioExtractor(1053): ActAudioExtractor::inbuf: 4205c730  mime audio/OGG  OGG max_chunksize: 65548 channels: 2 sample_rate 44100 total_time=0
07-22 10:39:31.528: E/OMXCodec(1053): Attempting to allocate OMX node 'OMX.Action.Audio.Decoder'
07-22 10:39:31.538: E/(1053): OMX-In omx_maddec_component_SetInternalParameters unrecognized format = 24
07-22 10:39:31.538: E/OMXCodec(1053): *****************************initOutputFormat  numChannels=2 sampleRate=44100
07-22 10:39:31.538: E/OMXCodec(1053): numChannels=2 sampleRate=44100
07-22 10:39:31.538: E/OMXCodec(1053): ACTIONS_AUDIO_DECODER*****************************
07-22 10:39:31.538: E/OMXCodec(1053): audio OMXCodec start init_buf
07-22 10:39:31.588: E/OMX_VCE(1053): OMX-In OMX_ComponentInit, allocating component,0x4139d598
07-22 10:39:31.588: E/OMX_VCE(1053): OMX-In OMX_ComponentInit, allocating component,0x42059468
07-22 10:39:31.618: E/BufferQueue(1049): [com.android.gallery3d/com.android.camera.CameraLauncher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
07-22 10:39:31.638: E/MediaExtractor(1053): Create: firstly choose to use android extractor !!! isStreamFlag: false
07-22 10:39:31.648: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] There is no more output data available, not calling fillOutputBuffer
07-22 10:39:31.648: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] stop mState=4
07-22 10:39:31.648: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] IDLE_TO_LOADED
07-22 10:39:31.648: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] Now Loaded.
07-22 10:39:31.648: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] stopped in state 1
07-22 10:39:31.658: E/(1053): OMX-In compMessageHandlerFunction Destructor has been called. So exit from the loop
07-22 10:39:31.658: E/WVMExtractor(1053): Failed to open libwvm.so
07-22 10:39:31.658: E/MediaExtractor(1053): Autodetected media content as 'application/ogg' with confidence 0.20
07-22 10:39:31.658: E/ActAudioExtractor(1053): ActAudioExtractor: total_time zero = 0
07-22 10:39:31.658: E/ActAudioExtractor(1053): ActAudioExtractor::inbuf: 41440980  mime audio/OGG  OGG max_chunksize: 65548 channels: 2 sample_rate 44100 total_time=0
07-22 10:39:31.678: E/OMXCodec(1053): Attempting to allocate OMX node 'OMX.Action.Audio.Decoder'
07-22 10:39:31.678: E/(1053): OMX-In omx_maddec_component_SetInternalParameters unrecognized format = 24
07-22 10:39:31.678: E/OMXCodec(1053): *****************************initOutputFormat  numChannels=2 sampleRate=44100
07-22 10:39:31.678: E/OMXCodec(1053): numChannels=2 sampleRate=44100
07-22 10:39:31.678: E/OMXCodec(1053): ACTIONS_AUDIO_DECODER*****************************
07-22 10:39:31.678: E/OMXCodec(1053): audio OMXCodec start init_buf
07-22 10:39:31.688: E/MediaExtractor(1053): Create: firstly choose to use android extractor !!! isStreamFlag: false
07-22 10:39:31.708: E/WVMExtractor(1053): Failed to open libwvm.so
07-22 10:39:31.708: E/MediaExtractor(1053): Autodetected media content as 'application/ogg' with confidence 0.20
07-22 10:39:31.708: E/ActAudioExtractor(1053): ActAudioExtractor: total_time zero = 0
07-22 10:39:31.708: E/ActAudioExtractor(1053): ActAudioExtractor::inbuf: 4204f0a0  mime audio/OGG  OGG max_chunksize: 65548 channels: 2 sample_rate 44100 total_time=0
07-22 10:39:31.748: E/OMXCodec(1053): Attempting to allocate OMX node 'OMX.Action.Audio.Decoder'
07-22 10:39:31.758: E/(1053): OMX-In omx_maddec_component_SetInternalParameters unrecognized format = 24
07-22 10:39:31.758: E/OMXCodec(1053): *****************************initOutputFormat  numChannels=2 sampleRate=44100
07-22 10:39:31.758: E/OMXCodec(1053): numChannels=2 sampleRate=44100
07-22 10:39:31.758: E/OMXCodec(1053): ACTIONS_AUDIO_DECODER*****************************
07-22 10:39:31.758: E/OMXCodec(1053): audio OMXCodec start init_buf
07-22 10:39:31.858: E/BufferQueue(1049): [SurfaceView] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count
07-22 10:39:31.888: E/CameraHal(1053): IPerformanceService Connect
07-22 10:39:36.068: E/CameraHal(1053): IPerformanceService Connect
07-22 10:39:36.078: E/(1053): OMX-In compMessageHandlerFunction Destructor has been called. So exit from the loop
07-22 10:39:36.088: E/(1053): OMX-In compMessageHandlerFunction Destructor has been called. So exit from the loop
07-22 10:39:36.148: E/(1053): OMX-In compMessageHandlerFunction Destructor has been called. So exit from the loop
07-22 10:39:36.158: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] stop mState=4
07-22 10:39:36.158: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] IDLE_TO_LOADED
07-22 10:39:36.158: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] Now Loaded.
07-22 10:39:36.158: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] stopped in state 1
07-22 10:39:36.168: E/(1053): OMX-In compMessageHandlerFunction Destructor has been called. So exit from the loop
07-22 10:39:36.168: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] stop mState=4
07-22 10:39:36.178: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] IDLE_TO_LOADED
07-22 10:39:36.178: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] Now Loaded.
07-22 10:39:36.178: E/OMXCodec(1053): [OMX.Action.Audio.Decoder] stopped in state 1
07-22 10:39:36.178: E/(1053): OMX-In compMessageHandlerFunction Destructor has been called. So exit from the loop
07-22 10:39:36.268: E/ControlPanelLayout(3545): layout_xxx of ControlPanelLayout should be wrap_content
07-22 10:39:36.338: E/AndroidRuntime(1934): FATAL EXCEPTION: main
07-22 10:39:36.338: E/AndroidRuntime(1934): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.launcher2.Launcher}: android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2059)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3512)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.ActivityThread.access$700(ActivityThread.java:130)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1201)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.os.Handler.dispatchMessage(Handler.java:99)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.os.Looper.loop(Looper.java:137)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.ActivityThread.main(ActivityThread.java:4746)
07-22 10:39:36.338: E/AndroidRuntime(1934): at java.lang.reflect.Method.invokeNative(Native Method)
07-22 10:39:36.338: E/AndroidRuntime(1934): at java.lang.reflect.Method.invoke(Method.java:511)
07-22 10:39:36.338: E/AndroidRuntime(1934): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:917)
07-22 10:39:36.338: E/AndroidRuntime(1934): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)
07-22 10:39:36.338: E/AndroidRuntime(1934): at dalvik.system.NativeStart.main(Native Method)
07-22 10:39:36.338: E/AndroidRuntime(1934): Caused by: android.view.InflateException: Binary XML file line #17: Error inflating class <unknown>
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:807)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
07-22 10:39:36.338: E/AndroidRuntime(1934): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.Activity.setContentView(Activity.java:1939)
07-22 10:39:36.338: E/AndroidRuntime(1934): at com.android.launcher2.Launcher.onCreate(Launcher.java:369)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.Activity.performCreate(Activity.java:5080)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
07-22 10:39:36.338: E/AndroidRuntime(1934): ... 12 more
07-22 10:39:36.338: E/AndroidRuntime(1934): Caused by: java.lang.reflect.InvocationTargetException
07-22 10:39:36.338: E/AndroidRuntime(1934): at java.lang.reflect.Constructor.constructNative(Native Method)
07-22 10:39:36.338: E/AndroidRuntime(1934): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
07-22 10:39:36.338: E/AndroidRuntime(1934): ... 26 more
07-22 10:39:36.338: E/AndroidRuntime(1934): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:463)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.View.<init>(View.java:3342)
07-22 10:39:36.338: E/AndroidRuntime(1934): at android.view.ViewGroup.<init>(ViewGroup.java:427)
07-22 10:39:36.338: E/AndroidRuntime(1934): at com.android.launcher2.CellLayout.<init>(CellLayout.java:176)
07-22 10:39:36.338: E/AndroidRuntime(1934): at com.android.launcher2.CellLayout.<init>(CellLayout.java:172)
07-22 10:39:36.338: E/AndroidRuntime(1934): ... 29 more
07-22 10:39:36.458: E/ControlPanelLayout(3545): layout_xxx of ControlPanelLayout should be wrap_content
07-22 10:39:38.218: E/Trace(3705): error opening trace file: No such file or directory (2)
07-22 10:39:39.068: E/BufferQueue(1049): [com.android.launcher2.Launcher] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值