debug|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|debug Unable to add window android.view.View--permission denied for this window type】
推荐阅读
- paddle|动手从头实现LSTM
- Swift|Swift ----viewController 中addChildViewController
- paddlepaddle|paddlepaddle操作(一)
- 嵌入式电脑|Paddle Inference——基于python API在Jetson上部署PaddleSeg模型
- 龙马UI|龙马UI lm-ui-elementl lm-address地址组件
- Unable|Unable to add window -- token null is not valid; is your activity running?
- python|Python的DEBUG LOG
- linux如何查看ip地址
- Java高效开发-远程debug
- JAVA并发编程——原子操作类以及LongAdder源码分析