-
Notifications
You must be signed in to change notification settings - Fork 45
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
Error building Android generated project with Kotlin #130
Comments
Possibly related: https://issuetracker.google.com/issues/266599585 |
There's a few strange things here, and I'm not cut out to address any of them. First off, downloading your project triggers Windows Defender to think there's a virus, which is something I only encounter rarely, and I'm also on Windows 10. Needless to say, actually downloading the file will be a challenge, so I'll use the sample projects instead, since I think you said those also had the same issue. The only real clue I have is that the log you pasted in the ktx issue seemed to have all of the errors start with a circular reference to |
I don't know why the project is suspected as virus, it's a project create by gdx-liftoff and then built with IDEA. Can someone try to create a project (or the sample from gdx-ktx) and build it with AGP 7.4.x? Is the version mentioned in the issue posted above |
I finally make the kts-sample build correctly. In the order I've changed:
I'm attaching the modified kts sample that is building now with Android Studio Giraffe (2022.3.1). I hope this time Windows Defender will not trigger! |
I've wanted to update Gradle to 8.x for a while now, but Android has always held the version back. Maybe now it works reliably, after about half a year of not working... I tried the modified sample, and IDEA (the current version, 2023.2 ) still doesn't seem to be compatible with AGP 8.1. It does seem to be compatible with AGP 8.0.0, though! 🎉 I have it using Gradle 8.2.1 (8.3 should be out soon, but should also be compatible), and that seems to work fine with AGP 8.0.0 . I only had to change the JDK in project structure to 17, and it worked as soon as the versions were right. The downside to moving to AGP 8.0 is it means users who want to develop for Android need to update IDEA to 2023.2 or use a very recent Android Studio version. It looks like at least for Kotlin usage, it's necessary to use an up-to-date IDE. I'll leave this open until I can confirm the most recent Liftoff release's samples build in the most recent IDEA (and AS). |
I can confirm the Java and Kotlin samples build with the most recent sample versions and most recent IDEA (2023.2.2). I haven't tested with AS, nor have I been able to test the iOS builds, but all other platforms work out of the box. So I guess I can close this! Hooray... |
Hi,
I'm trying to generate a libGDX project with Kotlin and KTX.
I've tried both with template "Kotlin", and with "Kotlin + KTX", and both of this, build fine for desktop, but gave me the same error while trying on Android.
The log error is:
Here there is also the project as generated by the gdx-liftoff tool:
BoatTemplateKotlinKtx.zip
Here some information about my setup:
Can someone help me figuring out if it is a bug of the tool or an error on my configuration?
Thank you,
Davide
The text was updated successfully, but these errors were encountered: