Closed bazola closed 8 years ago
Ok, looks like there are a few issues on GWT:
AbsoluteFileHandleResolver
and LocalFileHandleResolver
to the libgdx GWT module.FileHandle
constructors to the libgdx GWT module.StringTokenizer.countTokens()
is not supported by GWT. This must be fixed in gdx-ai, I guessNow items 1 and 2 should be fixed by this commit and this commit respectively
Just realized that StringTokenizer
is emulated by the libgdx gwt backend, see https://github.com/libgdx/libgdx/blob/master/backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/java/util/StringTokenizer.java
We might simply update that class in order to support countTokens
.
Hi! I have this problem. How can I update my project to get your fixes?
@AlexanderSopov
Update to gdx-1.8.0.
If you use gradle, just change the gdx-ai version in your build.gradle
.
@davebaol hi! I did do just that. In the build.gradle in the root folder of the project I changed the following thing:
allprojects{ [...] ext{ appName = "SharpShooter" gdxVersion = '1.8.0' roboVMVersion = '1.12.0' box2DLightsVersion = '1.4' ashleyVersion = '1.7.0' aiVersion = '1.8.0' \ >>it was 1.7.0 before<<** } }
and I still get the same error. Did I miss something? :(
Looks like you have not run gradle to refresh depencencies and rebuild your project. You can do it either from inside your IDE or through command line.
@davebaol actually I got it working by changing ai-version to 1.6 so I doubt that refreshing dependencies will help, but I will try. Thanks a lot! :)
Yes, I did gradle build --refresh-dependencies and it did not help circumvent the issue. I still get an error with the exact error as the OP in this thread.
Try using these versions
gdxVersion = '1.9.2'
aiVersion = '1.8.0'
I had to change StringTokenizer
emulation in libgdx 1.9.0, see the commit linked in https://github.com/libgdx/gdx-ai/issues/59#issuecomment-170245829
@davebaol thanks man! That solved it! I had to make some changes to the htmlLauncher but that wasn't hard. :dancer:
Looks like the cause is the new GdxFileSystem. Here is the output that I get when trying to compile for GWT: