android - Android Things console not allowing me to create a build
问题描述
I'm trying to build my first Android Things application. To run it on my Raspberry Pi I need to create a build with my application. The problem happens when I try to add my application to the build. It says "Permission denied". I've tried with two different Google accounts.
Does anyone know what could be the reason? Is there any way of building it from the command line instead of Android Things console?
解决方案
我弄清楚了问题所在。
当我们创建一个 Android Things 应用程序时,必须在 Manifest 文件中设置所有权限。不允许运行时权限。
在我的权限中,有 android.permission.READ_LOGS 权限,看起来 Android Things Console 不接受包含此权限的应用程序。
我删除了它,我可以添加它。
推荐阅读
- c++ - c++ 类对象与另一个类的序列化
- asp.net - 获取“用户'TestUser'登录失败。” 在通过 ASP.Net 程序连接到 DB 期间
- javascript - 请问有什么方法可以将这些数据处理成所需的格式吗?
- c# - HttpPostedFileBase 有错误 (MVC) 红色下划线
- python - 数据算法 (Python)
- python - 是否可以在 TensorFlow py_function 中使用调用会话?
- python-3.x - 尝试使用 python shell 在 python3 中向客户端发送消息但仍然出现错误
- clojure - 如何将自定义参数传递给 edn 阅读器?
- java - 如何使用 Spring Boot 应用程序破解 Kubernetes 容器并以 root 用户身份运行?
- android - 地理编码器在模拟器测试期间找不到位置