Android Studio 3.0错误:找到未知元素<uses-permission>

时间:2018-01-21 07:10:37

标签: javascript java android barcode-scanner android-studio-3.0

所以我试图构建一些需要相机许可的扫描仪应用程序,我在清单上尝试这个:

    <uses-permission android:name="android.permission.CAMERA" />

然后我收到了这样的错误:

Error:(28) error: unknown element <uses-permission> found.
Error:(28) unknown element <uses-permission> found.
Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt

有人可以帮我吗?

0 个答案:

没有答案