调用需要API级别14(目前最小为10): [英] Call requires API level 14 (current min is 10):

查看:226
本文介绍了调用需要API级别14(目前最小为10):的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何解决这个问题?我不明白这个错误背后的原因是什么?

code

  devicePolicyManager.setCameraDisabled(demoDeviceAdmin,假);
 

错误:

  

调用需要API级别14(目前最小为10):   android.app.admin.DevicePolicyManager#setCameraDisabled DevicePolicyDemoActivity.java / DevicePolicyDemoActivity / src目录/ COM / marakana /安卓/ devicepolicydemo线   62 Android的皮棉问题

解决方案

这其实是来自林特警告,而不是错误。如果你想保持你目前的最低SDK级别,可以燮preSS警告,并检查自己的SDK级别,在运行时。

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

code

devicePolicyManager.setCameraDisabled(demoDeviceAdmin, false);

error :

Call requires API level 14 (current min is 10): android.app.admin.DevicePolicyManager#setCameraDisabled DevicePolicyDemoActivity.java /DevicePolicyDemoActivity/src/com/marakana/android/devicepolicydemo line 62 Android Lint Problem

解决方案

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.

这篇关于调用需要API级别14(目前最小为10):的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆