0

So I'm trying to build some kinda scanner application that requires camera permission, I'm trying this at the manifest:

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

and then I got an error like this:

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

Can somebody help me with this?

Zaid Mirza
  • 3,540
  • 2
  • 24
  • 40
  • You have that `` element in the wrong spot in your manifest. It belongs outside of the `` tags. – Mike M. Jan 21 '18 at 07:12
  • @MikeM. Thank you very much Sir! It works! but now I got a new problem which is after scanner did the scanning, it only shows the result. I can't click on the url. Can you help me? – Ricardo F. Seikka Jan 21 '18 at 08:07
  • That's a separate issue. You'll have to post a new question for that. Make sure to include a detailed description of the problem, and the relevant code and XML. – Mike M. Jan 21 '18 at 08:11
  • 1
    @MikeM. I see. Thank you again Sir, you help me a lot. – Ricardo F. Seikka Jan 21 '18 at 08:28

0 Answers0