我在平板电脑上安装了我的应用程序,但是当我尝试在我的手机中安装我的应用程序时,这个错误会出现在logcat中,我不知道是什么导致它,有人遇到过这个吗?
01-03 13:38:12.657: W/dalvikvm(2719): threadid=3: thread exiting with uncaught exception (group=0x4001e170)
01-03 13:38:12.657: E/AndroidRuntime(2719): Uncaught handler: thread main exiting due to uncaught exception
01-03 13:38:12.767: E/AndroidRuntime(2719): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.traininghandouts.app/com.traininghandouts.app.Login}: android.view.InflateException: Binary XML file line #48: Error inflating class <unknown>
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.os.Handler.dispatchMessage(Handler.java:99)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.os.Looper.loop(Looper.java:123)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-03 13:38:12.767: E/AndroidRuntime(2719): at java.lang.reflect.Method.invokeNative(Native Method)
01-03 13:38:12.767: E/AndroidRuntime(2719): at java.lang.reflect.Method.invoke(Method.java:521)
01-03 13:38:12.767: E/AndroidRuntime(2719): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
01-03 13:38:12.767: E/AndroidRuntime(2719): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
01-03 13:38:12.767: E/AndroidRuntime(2719): at dalvik.system.NativeStart.main(Native Method)
01-03 13:38:12.767: E/AndroidRuntime(2719): Caused by: android.view.InflateException: Binary XML file line #48: Error inflating class <unknown>
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.view.LayoutInflater.createView(LayoutInflater.java:513)
01-03 13:38:12.767: E/AndroidRuntime(2719): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
01-03 13:38:12.767: E/AndroidRuntime(2719): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.Activity.setContentView(Activity.java:1622)
01-03 13:38:12.767: E/AndroidRuntime(2719): at com.traininghandouts.app.Login.onCreate(Login.java:74)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
01-03 13:38:12.767: E/AndroidRuntime(2719): ... 11 more
01-03 13:38:12.767: E/AndroidRuntime(2719): Caused by: java.lang.reflect.InvocationTargetException
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.widget.ImageView.<init>(ImageView.java:105)
01-03 13:38:12.767: E/AndroidRuntime(2719): at java.lang.reflect.Constructor.constructNative(Native Method)
01-03 13:38:12.767: E/AndroidRuntime(2719): at java.lang.reflect.Constructor.newInstance(Constructor.java:446)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.view.LayoutInflater.createView(LayoutInflater.java:500)
01-03 13:38:12.767: E/AndroidRuntime(2719): ... 22 more
01-03 13:38:12.767: E/AndroidRuntime(2719): Caused by: java.lang.StackOverflowError
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.AssetManager.getResourceValue(AssetManager.java:186)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.getValue(Resources.java:887)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.getDrawable(Resources.java:579)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:160)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:788)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.loadDrawable(Resources.java:1690)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.getDrawable(Resources.java:580)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:160)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:788)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.loadDrawable(Resources.java:1690)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.getDrawable(Resources.java:580)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:160)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:788)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.loadDrawable(Resources.java:1690)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.getDrawable(Resources.java:580)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:160)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:788)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:729)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.loadDrawable(Resources.java:1690)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.content.res.Resources.getDrawable(Resources.java:580)
01-03 13:38:12.767: E/AndroidRuntime(2719): at android.graphics.drawable.StateListDrawable.inflate(S
我该怎么做才能解决这个问题?
答案 0 :(得分:0)
两个跟踪,1)XML Inflater 2)Stackoverflow建议,你的应用程序中有太多嵌套视图(android没有很好的支持)。有关详细信息,请参阅此讨论。stackoverflow error
您可能需要重新考虑视图组层次结构。