我知道device_admin.xml应该放在我的/ res /xml文件夹中,但是在res文件夹下没有xml文件夹。我该把它放在哪里?
device_admin.xml:
<device-admin xmlns:android="http://schemas.android.com/apk/res/android">
<uses-policies>
<limit-password/>
<watch-login/>
</uses-policies>
这是我的屏幕截图:

编辑:我是新来的,所以我不能添加xml文件夹。请告诉我这里能做些什么。(右击res文件夹)

发布于 2015-09-07 08:53:05
Android工作室可以帮你做到这一点:
<meta-data android:name="android.app.device_admin" android:resource="@xml/device_admin" />
Alt+Enter键。第一个选项是创建这样的资源文件。发布于 2015-09-07 08:46:36
步骤-
1)转到您的项目位于Windows Explorer中的位置。
2)然后打开要在其中添加device-admin.xml的模块。
3)转到res文件夹,并在该文件夹中创建一个名为xml的文件夹。
4)在Android中刷新(或同步,键盘快捷键-ctrl + alt + Y)项目。
5)将device-admin.xml放在Studio的文件夹中。
替代选项-
右击模块>新建>目录>输入名称xml并选择Resource xml。
https://stackoverflow.com/questions/32434060
复制相似问题