libgdx/gdx-liftoff

Warning duplicate content roots and error with Android

Quillraven opened this issue · 7 comments

Hi,

I created a fresh new project for desktop, teavm and android and get following warning/errors in IDEA:
image

The warning only comes when adding more than one "backend" for the game. I guess it can be ignored because teavm+desktop are both working. But maybe there is a solution to get rid off the warning?

For the error I guess I am doing something wrong. Maybe I need a different SDK for the project or some other setting?
I used this SDK:
image

and also downloaded the API level 32 stuff:
image

But when I go the Androindlauncher it cannot even compile properly:
image

Any help with the error is appreciated, thank you!

The warning is normal and also happens with gdx-setup. It may be due to the assets directory being in root / shared between modules.

I don't know why it's erroring, but I must admit I haven't tried the latest gdx-liftoff release.

When you have time, can you please try it and let me know if it works for you?

Another small thing that I noticed: the .gitignore does not exclude the build folder of lwgjl3 and teavm. Imo this should be added:

/lwjgl3/build/
/teavm/build/

Line 8 of .gitignore already excludes /lwjgl3/build/. But there's no teavm in there. Using wildcards like /*/build/ etc. would be more future-proof.

Works for me - I just had to change compileSdk and targetSdkVersion from 34 to 33 for it to build. I also tried with the Kotlin template, since your error looks Kotlin-y, but wasn't able to reproduce the same log() deal.

Thank you @Frosty-J! I now simply ticked all SDK platforms down to 29 and after a restart the of IDEA the errors are now gone.

image

Thanks again for your help :)

I will never truly understand Android. Cursed solution, but disk space is cheap so the important thing is it works.

TeaVM will be included in .gitignore in the next release. That will probably come out when Gradle 8.0 does.