Could not unlock surface java.lang.IllegalArgumentException

ViewRootImpl[tianqi]: Could not unlock surface

java.lang.IllegalArgumentException

at android.view.Surface.nativeUnlockCanvasAndPost(Native Method)

at android.view.Surface.unlockSwCanvasAndPost(Surface.java:331)

at android.view.Surface.unlockCanvasAndPost(Surface.java:312)

at android.view.ViewRootImpl.drawSoftware(ViewRootImpl.java:2920)

at android.view.ViewRootImpl.draw(ViewRootImpl.java:2823)

at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2604)

at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2211)

at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)

at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)

at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)

at android.view.Choreographer.doCallbacks(Choreographer.java:683)

at android.view.Choreographer.doFrame(Choreographer.java:619)

at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)

at android.os.Handler.handleCallback(Handler.java:751)

at android.os.Handler.dispatchMessage(Handler.java:95)

at android.os.Looper.loop(Looper.java:154)

at android.os.HandlerThread.run(HandlerThread.java:61)

at com.android.server.ServiceThread.run(ServiceThread.java:46)

解决办法:

在manifest中的添加 android:exported="true"


Could not unlock surface java.lang.IllegalArgumentException_第1张图片

你可能感兴趣的:(Could not unlock surface java.lang.IllegalArgumentException)