flutter-unity-view-widget icon indicating copy to clipboard operation
flutter-unity-view-widget copied to clipboard

A problem occurred evaluating root project 'android'

Open abdo400 opened this issue 3 years ago • 1 comments

I am trying to build with a new flutter and Unity projects. I successfully built for android, but after following the steps mentioned to add the app for android I get the following message

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/abdelrahmanmohamed/StudioProjects/my_project/my_project/android/build.gradle' line: 43

* What went wrong:
A problem occurred evaluating root project 'android'.
> Could not find method implementation() for arguments [file collection] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Steps to reproduce the behavior: Follow the exact same steps to install for android as mentioned in this page: https://pub.dev/packages/flutter_unity_widget

  • OS: Windows & macOS

  • Unity Version 2020.3.19f1

  • Kotlin 1.6.10

  • Flutter 2.10.1 stable

  • Android Studio 2021.1

  • Android SDK 32.1.0-rc1

  • Device: android emulator

abdo400 avatar Mar 13 '22 16:03 abdo400

Have you tried to run on a device and not emulator? I believe this will only work on a full device.

Dapp3rDanH avatar Mar 28 '22 17:03 Dapp3rDanH