Unity Build Error: Missing 'package' key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54

17,173

Solution 1

I have similar question with you but I was use ARcore SDK. I solved it by change assets--plugins--android--mainTemplate.gradle this part: "dependencies { classpath 'com.android.tools.build:gradle:3.6.0'} " from 3.4.0 to 3.6.0,

you may need to check "Customer Gradle Templete" in player setting-publishing setting-build, to create this file

Solution 2

i solved it by reverting back from ar foundation preview 10 4.1.0 to preview-2

Share:
17,173
Umer Asghar
Author by

Umer Asghar

Updated on June 11, 2022

Comments

  • Umer Asghar
    Umer Asghar almost 2 years

    i am using ARFoundation 4.1.0 preview package and in XR plug-in management in unity project settings i have enabled the Arcore but the problem is when i build it gives me "Missing 'package' key attribute on element package at [:arcore_client:] AndroidManifest.xml:30:9-54". and when i disable the Arcore it works fine but i get black screen camera.