【问题标题】:when I run app on my phone.The version is android 4.0.3当我在手机上运行应用程序时。版本是 android 4.0.3
【发布时间】:2012-07-16 06:13:14
【问题描述】:

这是什么错误,为什么会发生? sdk 是 4.0.3。

    07-16 14:00:03.090: E/AndroidRuntime(29487): FATAL EXCEPTION: main
07-16 14:00:03.090: E/AndroidRuntime(29487): java.lang.IllegalArgumentException: Window type can not be changed after the window is added.
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.os.Parcel.readException(Parcel.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.os.Parcel.readException(Parcel.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.view.IWindowSession$Stub$Proxy.relayout(IWindowSession.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.view.ViewRootImpl.relayoutWindow(ViewRootImpl.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.os.Handler.dispatchMessage(Handler.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.os.Looper.loop(Looper.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at android.app.ActivityThread.main(ActivityThread.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at java.lang.reflect.Method.invokeNative(Native Method)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at java.lang.reflect.Method.invoke(Method.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
07-16 14:00:03.090: E/AndroidRuntime(29487):    at dalvik.system.NativeStart.main(Native Method)

当我运行应用程序时,应用程序会自动关闭。弹出异常。

【问题讨论】:

  • 这个问题你解决了吗????

标签: android logcat


【解决方案1】:

看这篇文章

toddler safe app on android

我认为这可能会有所帮助,他得到了同样的错误。

java.lang.IllegalArgumentException: Window type can not be changed after the window is added

【讨论】:

【解决方案2】:

如果您想执行特定于 Android 的版本,请阅读 API:http://developer.android.com/reference/android/os/Build.html

并寻找可以帮助您的房产。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-14
    • 1970-01-01
    • 1970-01-01
    • 2012-07-02
    相关资源
    最近更新 更多