Open anmolguptach opened 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'
}
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.
What went wrong: Execution failed for task ':arcore_flutter_plugin:compileDebugKotlin'.
Compilation error. See log for more details
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 5s Exception: Gradle task assembleDebug failed with exit code 1
Update your build.gradle dependency to implementation 'com.google.ar:core:1.33.0
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.
What went wrong: Execution failed for task ':app:processDebugMainManifest'.
Try:
Get more help at https://help.gradle.org
BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1