Wednesday, March 6, 2013

[android-developers] Re: [VideoEditor] android.view.InflateException: Binary XML file line #21: Error inflating class

I am also getting same error try to find the way to optimize your memory foot prints in the application.

On Wednesday, November 7, 2012 7:39:56 AM UTC+5:30, MYS wrote:
Dear all:
I meet the exception in my Android 4.1.1 device.
Anybody can help for this?
P.S if  we don't change any codes in AP , how can we analyze for this?
DPI or resolution ? My device is DPI:240 .
Thanks.

01-05 00:00:08.887 E/AndroidRuntime( 5281): FATAL EXCEPTION: main
01-05 00:00:08.887 E/AndroidRuntime( 5281): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.videoeditor/com.android.videoeditor.ProjectsActivity}: android.view.InflateException: Binary XML file line #21: Error inflating class <unknown>
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2064)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2089)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3523)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.ActivityThread.access$700(ActivityThread.java:135)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.os.Handler.dispatchMessage(Handler.java:99)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.os.Looper.loop(Looper.java:137)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.ActivityThread.main(ActivityThread.java:4791)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at java.lang.reflect.Method.invokeNative(Native Method)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at java.lang.reflect.Method.invoke(Method.java:511)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:564)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at dalvik.system.NativeStart.main(Native Method)
01-05 00:00:08.887 E/AndroidRuntime( 5281): Caused by: android.view.InflateException: Binary XML file line #21: Error inflating class <unknown>
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:256)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.Activity.setContentView(Activity.java:1867)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at com.android.videoeditor.ProjectsActivity.onCreate(ProjectsActivity.java:92)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.Activity.performCreate(Activity.java:5008)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2028)
01-05 00:00:08.887 E/AndroidRuntime( 5281): ... 12 more
01-05 00:00:08.887 E/AndroidRuntime( 5281): Caused by: java.lang.reflect.InvocationTargetException
01-05 00:00:08.887 E/AndroidRuntime( 5281): at java.lang.reflect.Constructor.constructNative(Native Method)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
01-05 00:00:08.887 E/AndroidRuntime( 5281): ... 25 more
01-05 00:00:08.887 E/AndroidRuntime( 5281): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x1
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.content.res.TypedArray.getDimensionPixelOffset(TypedArray.java:430)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.widget.GridView.<init>(GridView.java:132)
01-05 00:00:08.887 E/AndroidRuntime( 5281): at android.widget.GridView.<init>(GridView.java:110)
01-05 00:00:08.887 E/AndroidRuntime( 5281): ... 28 more
01-05 00:00:08.977 D/PowerManagerService(  713): releaseWakeLock flags=0x1 tag=SCREEN_FROZEN
01-05 00:00:08.977 W/ActivityManager(  713):   Force finishing activity com.google.android.videoeditor/com.android.videoeditor.ProjectsActivity
01-05 00:00:08.977 D/PowerManagerService(  713): acquireWakeLock flags=0x1 tag=ActivityManager-Launch
01-05 00:00:09.017 I/ActivityManager(  713): START {act=android.intent.action.APP_ERROR flg=0x10000000 cmp=com.compalcomm.mtbf/.MTBFActivity (has extras) u=0} from pid 713
01-05 00:00:09.047 I/ActivityManager(  713): Process com.google.android.videoeditor (pid 5281) has died.

--
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment