I would like to use flutter_unity_widget in order to embed my unity project and use it as a plugin in apps.
I followed this link:
https://pub.dev/packages/flutter_unity_widget
but it isn't compiled as:
* Where:
Build file 'C:\Users\Maor\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\flutter_unity_widget-0.1.6+8\android\build.gradle' line: 39
* What went wrong:
A problem occurred evaluating project ':flutter_unity_widget'.
> Project with path ':unity-classes' could not be found in project ':flutter_unity_widget'.
while line 39 in flutter_unity_widget android build.gradle is the dependency:
implementation project(':unity-classes')
Steps:
- I added the unity project in the root folder
I opened it in Unity, set the player settings and exported it to Android.
pubspec.yaml: flutter_unity_widget: ^0.1.6+5
root android / settings.gradle:
include ":UnityExport" project(":UnityExport").projectDir = file("./UnityExport")
root android / UnityExport/build.gradle:
dependencies { implementation project(':unity-classes') }
file -> project structures -> modules: added unity-classes.jar as a module
I'm trying to run the plugin but get the above error.
Any idea what is wrong?