在Android Emulator API-Level 29(Pie)中运行Flutter App时出错

时间:2019-06-30 07:19:54

标签: flutter dart android-emulator

我已经在Android Emplator API Level 29(Pie)上运行Flutter App 然后会出现一些错误!!!

堆栈跟踪:

Security exception: Permission Denial: forceStopPackage() from pid=31519, uid=2000 requires android.permission.FORCE_STOP_PACKAGES

java.lang.SecurityException: Permission Denial: forceStopPackage() from pid=31519, uid=2000 requires android.permission.FORCE_STOP_PACKAGES
    at com.android.server.am.ActivityManagerService.forceStopPackage(ActivityManagerService.java:8748)
    at com.android.server.am.ActivityManagerShellCommand.runForceStop(ActivityManagerShellCommand.java:967)
    at com.android.server.am.ActivityManagerShellCommand.onCommand(ActivityManagerShellCommand.java:197)
    at android.os.ShellCommand.exec(ShellCommand.java:103)
    at com.android.server.am.ActivityManagerService.onShellCommand(ActivityManagerService.java:20320)
    at android.os.Binder.shellCommand(Binder.java:642)
    at android.os.Binder.onTransact(Binder.java:540)
    at android.app.IActivityManager$Stub.onTransact(IActivityManager.java:3442)
    at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:4181)
    at android.os.Binder.execTransact(Binder.java:739)
Installing build\app\outputs\apk\app.apk...
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install G:\flutter_project\f_project\foodyhouse\build\app\outputs\apk\app.apk: Security exception: Permission Denial: runInstallCreate from pm command asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL

java.lang.SecurityException: Permission Denial: runInstallCreate from pm command asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
    at com.android.server.am.UserController.handleIncomingUser(UserController.java:1827)
    at com.android.server.am.ActivityManagerService.
Error launching application on SM J730F.

0 个答案:

没有答案