AAPT2 error: check logs for details: unknown element found

前端 未结 2 1720
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 23:37

Here\'s my debug\\AndroidManifest.xml

Getting so many errors like

Element action is not allowed here.
Element category

相关标签:
2条回答
  • 2020-12-07 00:01

    In my case i've gotten this error (AAPT2) building the apk with Cordova build command, turns out it was a problem caused by the path to ./gradle user dependencies. The problem was the path itself where my username had special characters. Gradle was reading "?" instead of "Á", creating a new user solved the problem.

    OS: Windows 10

    0 讨论(0)
  • 2020-12-07 00:09

    AndroidManifest.xml:15: error: unknown element found.

    You have a misplaced tag.

    To improve incremental resource processing, Android plugin 3.0.0 enables AAPT2 by default. In previous versions of AAPT, elements nested in incorrect nodes in the Android manifest are either ignored or result in a warning.
    To resolve the issue, make sure your manifest elements are nested correctly. For more information, read Manifest file structure.

    You have to modify your Manifest:

     <action android:name="com.company.sqh.adio.ProfileActivity" />         
     <category android:name="android.intent.category.DEFAULT" />
    

    They should be included inside an <activity> tag.

    You can read more here.

    0 讨论(0)
提交回复
热议问题