Page 2 of 2

Re: Running java SDLActivity without androidx

Posted: Wed May 26, 2021 12:08 pm
by AuahDark
Yes, that DisplayCutout is important for love.window.getSafeArea functionality.

Re: Running java SDLActivity without androidx

Posted: Wed May 26, 2021 4:48 pm
by Gunroar:Cannon()
Is that function used a lot/used in löve, if I don't use it.
And any reason why Androidx is so important? Or any .jar download site that works?

Re: Running java SDLActivity without androidx

Posted: Mon May 31, 2021 2:30 pm
by AuahDark
love.window.getSafeArea is required to retrieve non-obstructed area of game window (i.e. camera notches). If you want to handle devices with notch, then you most likely need that function.

Also why you really don't want AndroidX? Since it's part of love-android dependency, you can't compile one without it. Also, it sounds like your Android SDK is broken.

Re: Running java SDLActivity without androidx

Posted: Tue Jun 01, 2021 8:22 am
by Gunroar:Cannon()
My Androidx is old and I can't update it...

Re: Running java SDLActivity without androidx

Posted: Tue Jun 01, 2021 10:17 am
by MrFariator
And why is that, what's the actual issue? Seems like you're trying to find alternatives instead of fixing whatever it is that's broken with your Android build setup.

Re: Running java SDLActivity without androidx

Posted: Tue Jun 01, 2021 2:07 pm
by Gunroar:Cannon()
MrFariator wrote: Tue Jun 01, 2021 10:17 am And why is that, what's the actual issue? Seems like you're trying to find alternatives instead of fixing whatever it is that's broken with your Android build setup.


Okay, let me try and recall my steps/problems
...

1)Try to build a game , problem:androidx missing,

2)Get androidx using maven, problem: android displaycutout, openURL and other things missing

3)Update android.jar manually and displaycutout is there(at this point I'm not sure if there was another problem with this updated android.jar :? ),
problem: syntax error/variable already declared in an xml(?) file of androidx package. Can't edit that file, read only and I can't get permission(I know why, I can't), even if I could it seems off editing a file I downloaded. I don't even know how an xml file is in the package...

4)Tried to get androidx again but manual jar file but no luck :cry: , hence I'm here asking for different ways to compile a love2d android game :)

Re: Running java SDLActivity without androidx

Posted: Wed Jun 02, 2021 3:50 am
by AuahDark
Gunroar:Cannon() wrote: Tue Jun 01, 2021 2:07 pm 1)Try to build a game , problem:androidx missing,
This sounds like broken Gradle. When you don't have AndroidX, gradle should automatically pull the AndroidX dependency from the internet. If you don't have internet access to your build machine then, well, good luck.

Re: Running java SDLActivity without androidx

Posted: Wed Jun 02, 2021 9:33 am
by Gunroar:Cannon()
AuahDark wrote: Wed Jun 02, 2021 3:50 am
This sounds like broken Gradle. When you don't have AndroidX, gradle should automatically pull the AndroidX dependency from the internet. If you don't have internet access to your build machine then, well, good luck.
Haha, No :rofl: . It did automatically pull it from the internet, but it seems the androidx was broken(?). Would changing version help?

Re: Running java SDLActivity without androidx

Posted: Wed Jun 02, 2021 11:28 pm
by AuahDark
No, the exact version is written on love-android build.gradle. Since even clean machine (GitHub Actions CI) can build it correctly, then the problem is your end and we really can't do nothing about it.

Probably deleting the .gradle folder in your HOME/USERPROFILE directory helps.

Re: Running java SDLActivity without androidx

Posted: Thu Jun 03, 2021 8:32 am
by Gunroar:Cannon()
Ok, thnx I'll try it and see if I can give any more solid feedback. :ultrahappy: