Giter Club home page Giter Club logo

Comments (2)

tommyettinger avatar tommyettinger commented on May 22, 2024

This is an issue tracker for bugs with libGDX, and this doesn't look like a bug with libGDX. This seems like a configuration issue with how you're using Android Studio. For help using libGDX and related tools we have the Discord community server: https://libgdx.com/community/discord/

This is probably something quick you can change in the module settings, but it makes much more sense to do this kind of debugging with immediate feedback (such as on Discord) than in stops-and-starts over GitHub Issues. Screenshots would also really help.

The initial projects created by gdx-setup use Java 7 as their language level, which doesn't support lambdas, but if you set source and target compatibility in all places where they are set currently (which could be in other build.gradle files), everything should work if they are all set to VERSION_1_8 as you have it. You may need to change the Project Structure to use a JDK 8 or newer, if somehow it started off using a JDK 7 installation. Project Structure also is where the current language level is stored; it should pick this up from Gradle, but it can be changed temporarily in Project Structure. As always, after changing any Gradle settings you need to sync the project, which the IDE may do automatically for you, or may prompt asking you to sync.

I'm closing this because it isn't a bug. I hope you can get support on the Discord!

from libgdx.

Frosty-J avatar Frosty-J commented on May 22, 2024

The initial projects created by gdx-setup use Java 7 as their language level, which doesn't support lambdas

This is no longer true as of #7311. I can't think of why lambdas would work in Android projects but not libGDX ones - they're both configured for Java 8 (wouldn't surprise me if Google's Groovy/Java template is no longer getting updated) out of the box, in my experience.

from libgdx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.