Running java SDLActivity without androidx
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Running java SDLActivity without androidx
Yes, that DisplayCutout is important for love.window.getSafeArea functionality.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
- Gunroar:Cannon()
- Party member
- Posts: 1143
- Joined: Thu Dec 10, 2020 1:57 am
Re: Running java SDLActivity without androidx
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?
And any reason why Androidx is so important? Or any .jar download site that works?
Re: Running java SDLActivity without androidx
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.
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.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
- Gunroar:Cannon()
- Party member
- Posts: 1143
- Joined: Thu Dec 10, 2020 1:57 am
Re: Running java SDLActivity without androidx
My Androidx is old and I can't update it...
-
- Party member
- Posts: 559
- Joined: Wed Oct 05, 2016 11:53 am
Re: Running java SDLActivity without androidx
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.
- Gunroar:Cannon()
- Party member
- Posts: 1143
- Joined: Thu Dec 10, 2020 1:57 am
Re: Running java SDLActivity without androidx
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 , hence I'm here asking for different ways to compile a love2d android game
Re: Running java SDLActivity without androidx
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.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
- Gunroar:Cannon()
- Party member
- Posts: 1143
- Joined: Thu Dec 10, 2020 1:57 am
Re: Running java SDLActivity without androidx
Haha, No . 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
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.
Probably deleting the .gradle folder in your HOME/USERPROFILE directory helps.
Profile. Do you encounter crashes in LÖVE Android and wanna send me logcats? Please hit me up in LÖVE Discord and send the full logcat file!
- Gunroar:Cannon()
- Party member
- Posts: 1143
- Joined: Thu Dec 10, 2020 1:57 am
Re: Running java SDLActivity without androidx
Ok, thnx I'll try it and see if I can give any more solid feedback.
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot], Semrush [Bot] and 1 guest