1:android stdio 开发时使用系统权限报错,为了编译成功可以关闭Using system app permission
这样就不会报错了
2:android stdio3.0 调用hide函数,添加系统jar文件,我们已InputManager.getInstance()方法举例
getInstance在android stdio sdk中为hide,在代码中直接使用会编译失败
/**
* Gets an instance of the input manager.
*
* @return The input manager instance.
*
* @hide
*/
public static InputManager getInstance() {
synchronized (InputManager.class) {
if (sInstance == null) {
try {
sInstance = new InputManager(IInputManager.Stub
.asInterface(ServiceManager.getServiceOrThrow(Context.INPUT_SERVICE)));
} catch (ServiceNotFoundException e) {
throw new IllegalStateException(e);
}