기기를 기기 소유자로 설정하려면 tutorial을 따라했습니다. 이 자습서에는 'adb를 사용하여 장치 소유자를 설정하는'절이 있습니다.기기에 이미 여러 사용자가있어 기기 소유자를 설정하지 못했습니다.
adb server is out of date. killing...
* daemon started successfully *
java.lang.IllegalStateException: Not allowed to set the device owner because there are already several users on the device
at android.os.Parcel.readException(Parcel.java:1629)
at android.os.Parcel.readException(Parcel.java:1574)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:5146)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:114)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:82)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.dpm.Dpm.main(Dpm.java:38)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:257)
나는이 SO link과 도움 디에고 Plascencia 라라의 대답은 다음이 나에게 오류를 준
adb shell dpm set-device-owner sdg.example.kiosk_mode/.AdminReceiver
: 튜토리얼 여기 키오스크 모드 데모 앱을 설치 한 후, 다음 명령을 실행 말한다 나
adb server is out of date. killing...
* daemon started successfully *
없애하지만 여전히 다음과 같은 오류가 adb shell dpm set-device-owner sdg.example.kiosk_mode/.AdminReceiver
명령을 실행 한 후 발생 :
java.lang.IllegalStateException: Not allowed to set the device owner because there are already several users on the device
at android.os.Parcel.readException(Parcel.java:1629)
at android.os.Parcel.readException(Parcel.java:1574)
at android.app.admin.IDevicePolicyManager$Stub$Proxy.setDeviceOwner(IDevicePolicyManager.java:5146)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:114)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:82)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.dpm.Dpm.main(Dpm.java:38)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:257)
왜이 오류가 발생하며이를 어떻게 제거 할 수 있습니까? 이전에 다른 앱을 기기 소유자로 설정하려고 시도했지만 앱을 완전히 없애지 못했으며 기기에서 앱을 실행하는 전체 절차를 완료하는 동안 항상 오류가 발생했다고 생각합니다.