Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Android / [SOLVED] how do I compile the game

Author
Message
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 9th Dec 2023 00:27
Hello.
how do I compile the game and leave the file on my computer instead of sending it to Google Play?
thx.
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!

The author of this post has marked a post as an answer.

Go to answer

Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 11th Dec 2023 06:04 Edited at: 11th Dec 2023 06:10
Studio: File>Export Project to Android
Classic:: File>Export Project>As Android

apk/aab export will be in the project folder for you to do whatever you want with.
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 11th Dec 2023 23:20 Edited at: 11th Dec 2023 23:21
This?
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!

Attachments

Login to view attachments
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 12th Dec 2023 16:31
package name must be in the following format:

com.mycompany.myapp

hover over any of the prompts or tick-boxes for more help there
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 13th Dec 2023 21:54 Edited at: 13th Dec 2023 23:01
java script error.
I don't understand anything at all. I just want to debug the program. why do I have to compile to some server every time and only then download it from somewhere to check. I just want to save it in a folder on my computer.
unclear. I want to know how I can compile to a folder on my computer so that I can just transfer it to android via the communicator. I have no idea how to set up hosting. I don't have enough skills.
why can't I compile for android on pc?
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 14th Dec 2023 03:44 Edited at: 14th Dec 2023 04:11
I studied the errors and came to the conclusion that something is missing. Maybe you need some java scripts?

Do I need to download android studio?
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!

Attachments

Login to view attachments
Zappo
Valued Member
20
Years of Service
User Offline
Joined: 27th Oct 2004
Location: In the post
Posted: 15th Dec 2023 00:21 Edited at: 15th Dec 2023 00:22
This post has been marked by the post author as the answer.
If you just want to test your app on your Android device, install the "AppGameKit Player" from Google Play (free) on your Android device. Run it and it will listen for a broadcast from your PC, so they must both be on the same WiFi network. Next click "Broadcast" from AppGameKit on your PC. It will beam your app over to the player on your Android device and it will run inside the player.

If you want to actually build a stand-alone Android app to install on your Android device then you must have the Java Development Kit (JDK is also free) installed on your PC (not JavaScript - that is a completely different thing). Then you can choose "Export Android APK" and fill in the relevant boxes. For testing you just need an App name (e,g, "My Test App"), a package name (e.g. "com.mydomain.myapp"), and give it a file name in the "Output File Location" ending in ".apk".

Just a note - for the package name you don't need to actually own the domain at this point. If you don't own a domain then just make one up but make sure your package name is unique and cannot possibly exist already on your device.

Once you have successfully built your APK file you can copy it over to your Android device via a USB cable or I use Google Drive. The first time you try to install an APK file that hasn't come from Google Play it will tell you that you need to change a setting to allow unsigned apps to be installed. Once you have done that, you should have your app installed and ready to run.
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 15th Dec 2023 05:26 Edited at: 16th Dec 2023 09:37
Thanks, because I was already thinking of downloading everything from the Internet like a vacuum cleaner. He helped me out.

programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 16th Dec 2023 09:35 Edited at: 16th Dec 2023 09:38
Hi, it's me again. Someone can help with advice. Where to install and how to install this java kit? I've already thrown all the app game kit folders with this program. And the compiler still hasn't worked. What should I do?
[jdk-21.0.1]
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!
ando
4
Years of Service
User Offline
Joined: 21st Feb 2020
Location: Australia
Posted: 17th Dec 2023 07:19
Also, you might want to watch this video.

Creating an Android APK from AppGameKit Studio

https://www.youtube.com/watch?v=-Ikk0Cr87AI
BASIC appeared in May 1964. Lightning flashed, the wind roared and the Earth moved.
And nine months later I was born.
So here I am.
I am Basic.
Code is in my genes.
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 17th Dec 2023 08:37 Edited at: 17th Dec 2023 08:38
error.
I figured out the installation, but now there is a new problem. I can't complete the final file. The program cannot add media files.
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!

Attachments

Login to view attachments
pavel_sv_1982
11
Years of Service
User Offline
Joined: 9th Apr 2013
Location: Russia
Posted: 17th Dec 2023 10:16
People, I have learned the sad news. My phone doesn't understand the x format model. I was still able to compile the game for android. I have removed all files in wave and mp3 from the folders. Everything worked out. Now we have to redo all the plans. Now I know that not all phones can use 3D models. Although there are no problems with the primitive shapes that the game creates.
programming is a hobby, not a job.
P.S. in google and youtube - nikename pavelman- it is not me!

Login to post a reply

Server time is: 2024-11-21 08:41:03
Your offset time is: 2024-11-21 08:41:03