首页 > 解决方案 > 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 Console App selection

Android Things Console Error

标签: androidraspberry-piandroid-thingsandroid-things-console

解决方案


我弄清楚了问题所在。

当我们创建一个 Android Things 应用程序时,必须在 Manifest 文件中设置所有权限。不允许运行时权限。

在我的权限中,有 android.permission.READ_LOGS 权限,看起来 Android Things Console 不接受包含此权限的应用程序。

我删除了它,我可以添加它。


推荐阅读