#Building for Android

1 messages · Page 1 of 1 (latest)

proven crater
#

Hello folks! I'm trying to build for Android using the latest version of GM from Steam. I tried it with an existing project but I got errors so I'm using a completely empty "Blank Pixel Game" template to ensure it's not my code. I get the same errors in this case too.
Some more details before the errors

Linked below is the entire error log, using pastebin because it is too long
https://pastebin.com/Tum3Gbq8

Here is a link to the same in the other server if you'd prefer not to read on pastebin
#295210810823802882 message

Thanks for any help, please feel free to ask me for more details!

thin pumice
#

ello just having breakfast, be with you shortly

thin pumice
#

hokay

#

androidx.activity is not being found which is not an issue i've seen before. this could mean a path somewhere is wrong, or the install is corrupted, or you installed the wrong thing

#

couple quick questions - have you ever installed Android Studio on your machine before? have you been able to compile and run Android apps from GameMaker before?

thin pumice
#

did a test my end and i was able to build using IDE v2024.1400.0.815 Beta Runtime v2024.1400.0.815

#

i don't have 2024.13 installed (i'm on .11 for work)

#

my paths are these:

  • Android SDK location C:\Users\conta\AppData\Local\Android\Sdk
  • Android NDK location C:\SDKs\Android\Sdk\ndk\27.2.12479018
  • Java JDK location C:\Program Files\Android\Android Studio\jbr

i have Android 14.0 and 15.0 installed. i have build tools 34.0.0 installed. i have only NDK 27.2.blah installed

in the project, i have the default settings chosen for Android by selecting "API Level 34"

proven crater
thin pumice
#

interesting. so your install of Android Studio is completely new on this machine?

proven crater
#

Yes

thin pumice
#

cool, thanks

proven crater
#

I installed it for Flutter

#

And I've been able to build Android projects using this install for Flutter

thin pumice
#

hmm ok.

#

what does that involve?

proven crater
#

It has it's own tooling

#

But it requires Android SDK

#

So the SDK itself is good because it can export to Android

thin pumice
#

ok ... could you link me to install instructions for Flutter?

proven crater
thin pumice
#

thank you

proven crater
thin pumice
#

ok. i've noticed a discrepancy i think

#

could you show me your project's Android settings?

#

mine look like this

proven crater
#

One second

thin pumice
#

take your time

proven crater
#

I'd already started a build on a 2024.11 project, just waiting for that to complete

#

Shouldn't take more than 2 minutes tops

#

Okay

#

So

#

I ran a build on 2024.11

#

And it runs?

#

I have changed 0 things

thin pumice
#

good

proven crater
#

This is literally a fresh project

thin pumice
#

now we need to identify what the differences are between the two runtimes

#

this is progress

proven crater
#

The main difference is that the other project was made using 2024.13

#

So I can try again with that version and let you know

thin pumice
#

devil's in the details. let's start with the Android project settings

proven crater
#

Okay, let me post the ones from now first

thin pumice
#

thank you

proven crater
#

This is the one that runs which is on 2024.11

#

Are there any other details from this that you require?

#

Because I will then change to 2024.13 and I cannot have both open at once

thin pumice
#

nope that's good thank you

#

you can swap over

proven crater
#

Okay

#

I had apparently set it to API Level 30

#

Instead of 34

#

Setting it to 34 now also builds with Latest

#

Apologies for wasting your time Juju 😅

thin pumice
#

not at all!

#

rubber duck debugging is like this. it's usually something simple

#

good luck with your game