debug Unable to add window android.view.View--permission denied for this window type

04-05 15:17:15.279: E/AndroidRuntime(1575): FATAL EXCEPTION: main
04-05 15:17:15.279: E/AndroidRuntime(1575): android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@4103e4c0 -- permission denied for this window type
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewRootImpl.setView(ViewRootImpl.java:537)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:301)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.Window$LocalWindowManager.addView(Window.java:537)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at com.compal.android.framework.elastic.Elasticview$PrimeviewTouchListener.onTouch(Elasticview.java:96)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.View.dispatchTouchEvent(View.java:5536)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1951)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1712)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1957)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1684)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1957)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1684)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1957)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1684)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1957)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1684)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:1957)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1684)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1912)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1371)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.app.Activity.dispatchTouchEvent(Activity.java:2364)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1860)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.View.dispatchPointerEvent(View.java:5721)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewRootImpl.deliverPointerEvent(ViewRootImpl.java:2890)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2466)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewRootImpl.processInputEvents(ViewRootImpl.java:845)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2475)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.os.Handler.dispatchMessage(Handler.java:99)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.os.Looper.loop(Looper.java:137)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at android.app.ActivityThread.main(ActivityThread.java:4424)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at java.lang.reflect.Method.invokeNative(Native Method)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at java.lang.reflect.Method.invoke(Method.java:511)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
04-05 15:17:15.279: E/AndroidRuntime(1575):     at dalvik.system.NativeStart.main(Native Method)

fix:

add window permission at android manifest.xml file





你可能感兴趣的:(debug Unable to add window android.view.View--permission denied for this window type)