FunkinDroidTeam / Funkin

A rhythm game made with HaxeFlixel. Now ported into iOS and Android.
https://www.newgrounds.com/portal/view/770371
Other
24 stars 15 forks source link

Compiling Error: .gradle wrapper (The system cannot find the specified path) #26

Closed LexiLikesFunkin closed 1 week ago

LexiLikesFunkin commented 1 month ago

I'm not sure if this is a bug, or something that didn't install correctly, but here goes Edit: the markdown didn't work, it looks like this for a variety of bits

image

From Joel On Software:

"It’s pretty easy to remember the rule for a good bug report. Every good bug report needs exactly three things.

  1. Steps to reproduce: I just tried to compile, I followed the guide and everything (Except NDK didn't install correctly, so I did that manually, and assigned the path, would've got a different error if it wasn't right)

  2. What you expected to see: A folder with the compiled game

  3. What you saw instead: A hell of a bunch of errors

-->

Describe the bug

Refer to the top of the page, the errors happen a long way into compiling, and don't resolve on their own / produce a finished build

To Reproduce

I wish I could say how to reproduce it

Expected behavior

I wanted the game to finish compiling as normal

Screenshots/Video

Desktop

mcagabe19 commented 1 month ago

please use our hxcpp (https://github.com/FunkinDroidTeam/hxcpp)

LexiLikesFunkin commented 1 month ago

Ohhh I'll try and give another update

LexiLikesFunkin commented 1 month ago

Oh, will this stop me from being able to compile to Windows?

mcagabe19 commented 1 month ago

nope

LexiLikesFunkin commented 1 month ago

Awesome, thank you!

LexiLikesFunkin commented 1 month ago

ERROR: JAVA_HOME is set to an invalid directory: C:\Users[USER]\AppData\Local\Android\Sdk\jdk\jdk-17.0.11+9

mcagabe19 commented 1 month ago

make sure jdk path is correct

LexiLikesFunkin commented 1 month ago

It's correct I think the batch file set it automatically, but it's correct

LexiLikesFunkin commented 1 month ago

I'd be happy to resolve this on Discord if you have any other suggestions, my @ is just lexilikesfunkin Thanks!

zacksgamerz commented 1 month ago

Check if that directory exists! Could be a mishap from the batch file itself, and if it does exist make sure the folder isnt empty

LexiLikesFunkin commented 1 month ago

okay, no, yeah, the bat file gave it the wrong location haxelib run lime config JAVA_HOME %LOCALAPPDATA%\Android\Sdk\jdk\jdk-17.0.11+9 image

LexiLikesFunkin commented 1 month ago

image nvm still not wanting to work

mcagabe19 commented 1 month ago

can u delete .gradle from user root dir and try recompile

LexiLikesFunkin commented 1 month ago

may i get the path? edit: i mean because searching gradle took too long, and didnt give results edit 2: okay i might be stupid, but it still netted no results image There is no gradle.

zacksgamerz commented 1 month ago

image I think she meant this

LexiLikesFunkin commented 1 month ago

There isn't a .gradle directory '(The system cannot find the path specified)'

zacksgamerz commented 1 month ago

Just to make sure, try doing "lime setup android" and enter 3 times then send a screenshot

LexiLikesFunkin commented 1 month ago

image

mcagabe19 commented 1 month ago

can u try removing export folder and recompiling then?

zacksgamerz commented 1 month ago

Try deleting the android folder in the export folder, and try again. If it doesnt work it could be because of admin perms.

LexiLikesFunkin commented 1 month ago

Okay, recompiling now, this'll have to be the last thing I try, it's late and I need to get to bed. If it doesn't work I'll make another comment tomorrow when I’m on my pc

zacksgamerz commented 1 month ago

Sorry for the inconvenience! This is a new case for us despite working on this for years

LexiLikesFunkin commented 1 month ago

That's okay!! And I’m sorry that this has been such a hassle! It's still compiling, and it looks promising, though it got pretty far last time before failing...

LexiLikesFunkin commented 1 month ago

No... it went back to the .gradle issue I’m sorry that this has taken so long as well, I was hoping it would be a one and done type scenario, but I guess it'll have to be carried over to tomorrow I'll leave the issue open, so I can quickly come back to it when I’m up

mcagabe19 commented 1 month ago

just to make sure have u run hmm on funkin repo? (haxelib run hmm install) cuz u have to cuz we use some our libraries for mobile support

LexiLikesFunkin commented 1 month ago

I think I have, though I'm off my pc now so I'll have to check tomorrow I feel like that's what the problem will be not gonna lie, if it is I am very sorry for that

mcagabe19 commented 1 month ago

that's fine dw we all make mistakes

LexiLikesFunkin commented 1 month ago

I got this after compiling Funkin' Android/.haxelib/polymod/git/polymod/backends/LimeBackend.hx:146: characters 54-55 : Unexpected ? image

zacksgamerz commented 1 month ago

Update your haxe to the latest version

LexiLikesFunkin commented 1 month ago

I'm gonna do a fresh install of source as well... I tried doing it in a project i'm working on solo, and i got a .gradle error again, as there isn't a gradle directory in my users folder Edit: I think it's worth saying that it's basically a fresh copy of HelloWorld right now, there isn't anything special in the code yet, it's just assets

LexiLikesFunkin commented 1 month ago

After 10 painful minutes of compiling, it failed again with another .gradle error, '(The system cannot find the path specified)' image

zacksgamerz commented 1 month ago

maybe try opening the terminal tab with admin permissions? (Run as administrator)

LexiLikesFunkin commented 1 month ago

I searched all over my user profile, there isn't a .gradle folder, is there a library i have to install? i did run the hmm file and everything

zacksgamerz commented 1 month ago

The thing here is that it couldnt the path itself it might need elevated permissions.

LexiLikesFunkin commented 1 month ago

Oh, I see,,, Even with elevated permissions, it wouldn't be able to move the files to the user profile, the same thing happened yesterday with the NDK move with elevated perms I might have to move it manually

I couldn't get it working [edit]

LexiLikesFunkin commented 1 week ago

I felt it was worth coming back to this after having a break from coding (sorry for being gone so long) I still can't get it working, though I now have the .gradle folder. I'm still getting the same error because the directory i need isn't there. image image I think it's worth noting i'm not even using a copy of funkin android anymore, i'm literally just using a blank copy of HelloWorld from the Haxeflixel website

Edit: I also couldn't get wrapper to install in the gradle directory, neither could I get it to install in the code directory

mcagabe19 commented 1 week ago

can you try set GRADLE_USER_HOME="(repo path)\.gradle" and run compile again?

LexiLikesFunkin commented 1 week ago

it didn't fix anything it's even more broken now, i cant even run gradle reverting the changes hasn't fixed anything oh god image

LexiLikesFunkin commented 1 week ago

Enviroment Variable stuff - as the installation of gradle said to do image image

KarimAkra commented 1 week ago

from what i know gradle should be installed by lime at the end of the compile process in the export folder it's not supposed to have a environment variable or be in your device's root directory

maybe try deleting that gradle environment variable?

KarimAkra commented 1 week ago

image

also looking at your JDK path it's kinda weird windows somtimes fails to read/write to some directories with some symbols maybe try simplifying the path name?

LexiLikesFunkin commented 1 week ago

Okay, i modified the JDK path, removing the + in the name, and re-setup lime for android, compiling now to see i'll delete the gradle variable after if it doesnt work

LexiLikesFunkin commented 1 week ago

i got the same error...

mcagabe19 commented 1 week ago

Enviroment Variable stuff - as the installation of gradle said to do image image

why you have separate gradle, delete that gradle fully on your pc

LexiLikesFunkin commented 1 week ago

the C:\Gradle one? Alright... what next?

LexiLikesFunkin commented 1 week ago

This thread is getting really long if at any time you'd be happy to continue this on Discord, my username is lexilikesfunkin - i just dont want this getting too convoluted