java.lang.IllegalStateException: Trying to set device owner but device is already provisioned.

Hot problem!
This exception has a lot of traffic. You can help 40 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Mattia F., 1 year ago
Trying to set device owner but device is already provisioned.
via GitHub by chrisdew
, 1 month ago
Not allowed to set the device owner because there are already some accounts on the device
via Android Enthusiasts by rintcius
, 10 months ago
Not allowed to set the device owner because this device has already paired
via GitHub by david082321
, 9 months ago
Not allowed to set the device owner because there are already several users on the device
via Stack Overflow by Ankit Shubham
, 5 months ago
Not allowed to set the device owner because there are already several users on the device
via Stack Overflow by Alex Lum
, 1 week ago
Not allowed to set the device owner because the re are already some accounts on the device
java.lang.IllegalStateException: Trying to set device owner but device is already provisioned.
at android.os.Parcel.readException(Parcel.java:1554)
at android.os.Parcel.readException(Parcel.java:1499)
at com.android.commands.dpm.Dpm.runSetDeviceOwner(Dpm.java:114)
at com.android.commands.dpm.Dpm.onRun(Dpm.java:82)
at com.android.commands.dpm.Dpm.main(Dpm.java:38)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

Users with the same issue

4 times, 2 months ago
Once, 4 months ago
Once, 5 months ago
15 times, 10 months ago
2 times, 1 year ago
22 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.