giandifra / arcore_flutter_plugin

Flutter plugin for ARCore SDK, Android platform to build new augmented reality experiences
MIT License
435 stars 280 forks source link

<meta-data android:name="com.google.ar.core" android:value="required" /> #191

Open anmolguptach opened 2 years ago

anmolguptach commented 2 years ago

Launching lib/main.dart on RMX3242 in debug mode... Running Gradle task 'assembleDebug'... /Users/anmolgupta/StudioProjects/ar_app/android/app/src/debug/AndroidManifest.xml Error: Attribute meta-data#com.google.ar.core@value value=(required) from (unknown) is also present at [:arcore_flutter_plugin] AndroidManifest.xml:30:13-37 value=(optional). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml to override.

FAILURE: Build failed with an exception.

BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1

anmolguptach commented 2 years ago
Screenshot 2022-08-28 at 3 39 42 PM Screenshot 2022-08-28 at 3 39 21 PM Screenshot 2022-08-28 at 3 40 04 PM Screenshot 2022-08-28 at 3 40 33 PM Screenshot 2022-08-28 at 3 40 48 PM
swkim-lbstech commented 2 years ago

meta-data android:name="com.google.ar.core" android:value="required"

I erased the code.

And it changed all dependencies to the latest version.

dependencies {

// Provides ArFragment, and other UX resources.
implementation "com.google.ar.sceneform.ux:sceneform-ux:1.17.1"

// Alternatively, use ArSceneView without the UX dependency.
implementation "com.google.ar.sceneform:core:1.17.1"
implementation 'com.google.ar:core:1.33.0'

}

anmolguptach commented 2 years ago

Launching lib/main.dart on sdk gphone64 arm64 in debug mode... Running Gradle task 'assembleDebug'... e: /Users/anmolgupta/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/arcore_flutter_plugin-0.0.11/android/src/main/kotlin/com/difrancescogianmarco/arcore_flutter_plugin/ArcoreFlutterPlugin.kt: (32, 74): Type mismatch: inferred type is Activity? but Activity was expected

FAILURE: Build failed with an exception.

BUILD FAILED in 5s Exception: Gradle task assembleDebug failed with exit code 1

bensonarafat commented 2 years ago

Update your build.gradle dependency to implementation 'com.google.ar:core:1.33.0