flame-engine / flame

A Flutter based game engine.
https://flame-engine.org
MIT License
9.23k stars 902 forks source link

because flame >=0.10.0 depends on tiled ^0.2.0, flutter_driver from sdk is incompatible with flame >=0.10.0 #40

Closed olisteadman closed 5 years ago

olisteadman commented 5 years ago

Building my app 'nanny_mc', I see this error in CI/CD (using Codemagic):

== Install Flutter dependencies ==
Resolving dependencies...
Because every version of flutter_driver from sdk depends on convert 2.0.2 and every version of tiled depends on convert ^2.1.1, flutter_driver from sdk is incompatible with tiled.
And because flame >=0.10.0 depends on tiled ^0.2.0, flutter_driver from sdk is incompatible with flame >=0.10.0.
So, because nanny_mc depends on both flame 0.10.1 and flutter_driver any from sdk, version solving failed.
pub finished with exit code 1

In pubspec.yaml, if I replace flame: 0.10.1 with flame 0.10.0 the build still fails. Alternatively, if I remove flame entirely as follows,

screen shot 2019-02-14 at 08 37 30

... the build succeeds.

Are you aware of this incompatibility between flame and tiled?

erickzanardo commented 5 years ago

It seems that flutter_driver is depending on an older version of the convert package, tiled uses the newer one, 2.1.1 and by the looking of your error log, flutter_driver dependes on 2.0.2.

I have looked about this flutter_driver package and it seems to be provided by the flutter sdk itself, are you using an updated version of flutter?

olisteadman commented 5 years ago

Here's my output from flutter --version

Flutter 1.1.8 • channel beta • https://github.com/flutter/flutter.git
Framework • revision 985ccb6d14 (5 weeks ago) • 2019-01-08 13:45:55 -0800
Engine • revision 7112b72cc2
Tools • Dart 2.1.1 (build 2.1.1-dev.0.1 ec86471ccc)
Monotoba commented 5 years ago

Can't compile Flame on Android Studio 3.3.1

Android Studio 3.3.1 Build #AI-182.5107.16.33.5264788, built on January 28, 2019 JRE: 1.8.0_152-release-1248-b01 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.0-45-generic

This error only occurs when Flame is added to the pubspec.yaml file of any project on my system. I've tried changing Flame version to no avail. I've tried using a hard coded version such as Flame: 0.10.1 with no effect. Removal of Flame from the pubspec.yaml file resolves the issue. However, it mean I can't build any projects that use flame. Which I really want to use! I would be very grateful for any help resolving this issue. Error info follow;

Compilation Error:

Launching lib/main.dart on Android SDK built for x86 in debug mode... Initializing gradle... Resolving dependencies...

Configure project :audioplayers

[Fatal Error] asm-util-5.1.pom:1:44: Content is not allowed in prolog. [Fatal Error] asm-5.1.pom:1:44: Content is not allowed in prolog. [Fatal Error] asm-commons-5.1.pom:1:44: Content is not allowed in prolog. [Fatal Error] proguard-gradle-5.3.3.pom:1:44: Content is not allowed in prolog. [Fatal Error] asm-analysis-5.1.pom:1:44: Content is not allowed in prolog. [Fatal Error] asm-tree-5.1.pom:1:44: Content is not allowed in prolog. [Fatal Error] guava-22.0.pom:1:44: Content is not allowed in prolog. [Fatal Error] httpmime-4.1.pom:1:44: Content is not allowed in prolog. [Fatal Error] httpclient-4.2.6.pom:1:44: Content is not allowed in prolog. Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

BUILD FAILED in 1s Command: /home//AndroidStudioProjects/barn_stormer_2/android/gradlew app:properties

Finished with error: Please review your Gradle project setup in the android/ folder.

erickzanardo commented 5 years ago

@Monotoba this seems very odd, we will take a look into it, but this seems like a completely different problem from the error reported originally on this issue, could you please open a different issue? So we can target each problem individually?

Also, just fyi @olisteadman we are looking into this issue, and will report back as soon as we get to a solution

Thanks

feroult commented 5 years ago

I couldn't reproduce your problem with flutter_driver.

But anyway I've downgraded the convert version of tiled to the same of flame.

Just waiting @luanpotter to release next version to check if it is working, please.

Regards

erickzanardo commented 5 years ago

0.10.2 is out for some time now, have you tried on that version @olisteadman ?

erickzanardo commented 5 years ago

Closing this due inactivity, if you still got problems with the new version, please let us know @olisteadman