Call requires API level 14 (current min is 10):

后端 未结 6 1118
感动是毒
感动是毒 2021-01-06 08:53

How can I solve this error ? I do not understand the reason behind this error ?

code

devicePolicyManager.setCameraDisabled(demoDeviceAdmin, false);         


        
6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-06 09:31

    It is actually a warning from Lint, rather than an error. If you want to keep your current minimum SDK level, you can suppress the warning, and check the SDK level yourself, at run time.

提交回复
热议问题