Closed LexiLikesFunkin closed 1 week ago
please use our hxcpp (https://github.com/FunkinDroidTeam/hxcpp)
Ohhh I'll try and give another update
Oh, will this stop me from being able to compile to Windows?
nope
Awesome, thank you!
ERROR: JAVA_HOME is set to an invalid directory: C:\Users[USER]\AppData\Local\Android\Sdk\jdk\jdk-17.0.11+9
make sure jdk path is correct
It's correct I think the batch file set it automatically, but it's correct
I'd be happy to resolve this on Discord if you have any other suggestions, my @ is just lexilikesfunkin Thanks!
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
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
nvm still not wanting to work
can u delete .gradle from user root dir and try recompile
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 There is no gradle.
I think she meant this
There isn't a .gradle directory '(The system cannot find the path specified)'
Just to make sure, try doing "lime setup android" and enter 3 times then send a screenshot
can u try removing export folder and recompiling then?
Try deleting the android folder in the export folder, and try again. If it doesnt work it could be because of admin perms.
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
Sorry for the inconvenience! This is a new case for us despite working on this for years
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...
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
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
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
that's fine dw we all make mistakes
I got this after compiling Funkin' Android/.haxelib/polymod/git/polymod/backends/LimeBackend.hx:146: characters 54-55 : Unexpected ?
Update your haxe to the latest version
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
After 10 painful minutes of compiling, it failed again with another .gradle error, '(The system cannot find the path specified)'
maybe try opening the terminal tab with admin permissions? (Run as administrator)
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
The thing here is that it couldnt the path itself it might need elevated permissions.
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]
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. 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
can you try set GRADLE_USER_HOME="(repo path)\.gradle"
and run compile again?
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
Enviroment Variable stuff - as the installation of gradle said to do
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?
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?
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
i got the same error...
Enviroment Variable stuff - as the installation of gradle said to do
why you have separate gradle, delete that gradle fully on your pc
the C:\Gradle one? Alright... what next?
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
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
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.
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)
What you expected to see: A folder with the compiled game
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