Start a new topic
Solved

Flutter : Missing 'package' key attribute on element package at [com.google.ar:core:1.19.0]

i am trying to run a simple flutter example but i am getting following error 


[com.google.ar:core:1.19.0] /Users/xxx/.gradle/caches/transforms-2/files-2.1/45bb77398d4c18aa574cf1fb2ceda177/core-1.19.0/AndroidManifest.xml:30:9-54 Error:

 Missing 'package' key attribute on element package at [com.google.ar:core:1.19.0] AndroidManifest.xml:30:9-54

[com.google.ar:core:1.19.0] /Users/xxx/.gradle/caches/transforms-2/files-2.1/45bb77398d4c18aa574cf1fb2ceda177/core-1.19.0/AndroidManifest.xml Error:

 Validation failed, exiting


FAILURE: Build failed with an exception.



1 Comment

Hi,


You will need to add the next line -> <meta-data android:name="com.google.ar.core" android:value="optional" /> in your AndroidManifest.xml file. Here are more information about it: https://developers.google.com/ar/develop/java/enable-arcore#ar-optional and please remember to use the optional value.


Regards,


Aitor.


1 person likes this
Login or Signup to post a comment