Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android build failed #90

Closed
murilinhoPs opened this issue Dec 30, 2019 · 7 comments
Closed

Android build failed #90

murilinhoPs opened this issue Dec 30, 2019 · 7 comments

Comments

@murilinhoPs
Copy link

I don't know why I'm having this problem and I followed all the readme. In my project is everything all right, but in the android/build.gradle from the unity package I always get this error. Can someone help me?

FAILURE: Build failed with an exception.

  • Where:
    Build file '/home/murilops/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_unity_widget-0.1.6+5/android/build.gradle' line: 38

  • 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'.

@leemuljadi
Copy link

leemuljadi commented Jan 5, 2020

Have you tried following the video tutorial?
https://www.youtube.com/watch?v=exNPmv_7--Q

@murilinhoPs
Copy link
Author

Yes, followed every single step of the tutorial. The only differece, I used a project I already created and not donwloaded the project Demo.

@leemuljadi
Copy link

leemuljadi commented Jan 6, 2020

Oh yea, I'm having that problem as well. The game worked using the demo project but not with my own project. Also I kinda need help to set up in AR mode as well. See this link:
#49

@murilinhoPs
Copy link
Author

I'll see the link, thanks!

@leemuljadi
Copy link

No one has ever replied yet.. please let me know you have any update to work it out! thanks!

@thomas-stockx
Copy link
Collaborator

@murilinhoPs It should work with any Unity project, not just the example.

Can you please share your Flutter project's Android folder structure, and your build.gradle files?

@subjectdenied
Copy link

subjectdenied commented Jan 9, 2020

make sure you have this at the end of your settings.gradle inside the flutter android folder

include ":UnityExport"
project(":UnityExport").projectDir = file("./UnityExport")

thomas-stockx added a commit that referenced this issue Jan 23, 2020
Added some documentation to clear up #90
assemmarwan pushed a commit to assemmarwan/flutter-unity-view-widget that referenced this issue Jun 4, 2020
Added some documentation to clear up juicycleff#90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants