polymonster / premake-android-studio

premake5 module for android-studio and gradle build.
MIT License
34 stars 14 forks source link

Failed to use the example #23

Open Majanto opened 6 months ago

Majanto commented 6 months ago

Hello! I'm trying to use this Premake module to build an Android Studio project, but I can't figure out how to use the given example. When I run the generation command, I get a project that seems badly configured: image

I'm on Windows Any idea of what could be my issue here?

Thanks in advance!

polymonster commented 6 months ago

Not sure what the issue is, I can try taking a look to see if I can reproduce.

What gradle version are you using?

Changes in this pull request: https://github.com/polymonster/premake-android-studio/pull/21 might help, I can try them and get them merged if it fixes the issue.

polymonster commented 6 months ago

I was able to reproduce on latest android studio / windows. Mostly I have been using this on macOS so haven't tested windows for a while.

If you delete the gradle properties file it should get around the issue. The file in the example doesn't have anything in it, but its a stub there for properties which can be specified via premake.

polymonster commented 6 months ago

I made a branch in which I am able to build the windows version: https://github.com/polymonster/premake-android-studio/tree/upgrade-gradle

Having trouble getting the gradle version correctly configured now on the CI (linux) so not able to merge to main just yet

polymonster commented 6 months ago

Changes are now merged into main, updated to gradle 8+ and fixed the issue with empty gradle.wrapper files