0
Error:(30) unknown element <action> found
Error:(32) unknown element <category> found
Error:(33) unknown element <category> found

I read developers documentation but couldn't help https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html

this is a part of manifest file (couldn't send all of them ) :

<action android:name="android.intent.action.BOOT_COMPLETED" />
<action android:name="android.intent.action.QUICKBOOT_POWERON" />

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

<application

    android:name=".MyApplication"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="false"
    android:theme="@style/AppTheme"> ...
iDeveloper
  • 1,699
  • 22
  • 47
  • Do you have those elements in the wrong spots? It checks for that, now. – Mike M. Oct 29 '17 at 07:50
  • 2
    Have you checked this https://stackoverflow.com/questions/45373053/unable-to-build-project-with-gradle-4-1-unknown-element-found – Sachin Aggarwal Oct 29 '17 at 07:56
  • @MikeM. don't know what the problem is , it worked with previous version fine – iDeveloper Oct 29 '17 at 07:57
  • Yeah, it used to ignore tags in the wrong spots. Now it doesn't. You've apparently got three misplaced. – Mike M. Oct 29 '17 at 07:58
  • @SachinAggarwal , I tried all answers but did not work – iDeveloper Oct 29 '17 at 07:59
  • 2
    @tahaDev Please upload the manifest file – Sachin Aggarwal Oct 29 '17 at 08:03
  • 1
    Those ``s do not go there. `` and `` elements go inside ``s, which go inside component elements, inside ``. – Mike M. Oct 29 '17 at 08:16
  • Check the line 30-33 – Gabriele Mariotti Oct 29 '17 at 08:17
  • where should I put that ? will u please explain more! – iDeveloper Oct 29 '17 at 08:17
  • 2
    Those particular actions would go inside the `` in a ``. If you already have them there, then just delete those you've shown in that snippet, as they were never doing anything anyway. – Mike M. Oct 29 '17 at 08:18
  • I try it . but still don't get it . I will read about it . thx mike – iDeveloper Oct 29 '17 at 08:25
  • 1
    No problem. The linked duplicate has a link in the answer that describes the manifest structure: https://developer.android.com/guide/topics/manifest/manifest-intro.html#filestruct. You can have a look through that for the specifics, but, really, if your app was working as intended before the upgrade, you probably just need to delete the lines it's complaining about, because, as mentioned, they were just be ignored before anyway. – Mike M. Oct 29 '17 at 08:30

1 Answers1

0

Try to clear project and reload it. This helps most of the times.

larsaars
  • 2,065
  • 3
  • 21
  • 32