 Come with me as we journey into APKs. That's packages for Android with the Godot engine last time I showed you how to export will install Godot and export stuff from it. I tried to confuse you by throwing out way too much information Well today, we're gonna talk about APKs Which are once you have it set up are as easy as exporting everything else But you need a couple of tools a couple things from JavaScript And then if you want to test it out on your device You're gonna want adb installed as well And I'm gonna show you how to set those up how to install the things that are required and then how to export those APKs through Godot now. I am a Linux user. This is a Linux channel So I'm gonna be showing you how to do it through Linux using your repositories If you are from another operating system You're gonna have to go out on the interwebs and find these things because your operating system probably doesn't provide them for you It's as Linux does so don't try to make this as simple as possible There's three packages we need to install and then we just need to tell Godot engine where these applications are and then We also need to generate a key Because you need that to create APKs that run even though it doesn't make any sense to me But we're gonna go ahead and do that. So let's jump right in Okay, here we are with our little test application that we made in the last video This is a test. Let's go up to project export as we did in the last video and say add and we'll add in Android now we're gonna get three error messages So let's go ahead and have a look at these are what I've already talked about adb adb is executable is not found in the other settings again This shouldn't be required for compiling or packaging APKs But is required if you want to test down a device through Godot engine So we're gonna have it's we're gonna install that and then we also need open JDK for jar for signing And then we also need key store. We're gonna have to configure or create some debugging keys So let's go ahead and install those three packages. I'm gonna use my package manager. I'm on a Debian system So I'm gonna use apt if you're on a Debian based system open to Linux mint anything like that You should be able to use apt as well and these are the packages or somewhere. There's about what I mean by that Is there are gonna be different versions in the future? You may use a different version that I'm using now, but basically what will change are these numbers So let's actually look at these backwards. So I'm gonna say install adb So that's adb is the Android debugging bridge that allows you to communicate with an Android device through USB Or also through a network in some cases Now these two other packages are Java packages. So we have open JDK Dash again 11 is the version that may change But if you have that in your postories go ahead and use that version since that works for me if you try another one It may not work But if you don't see 11 in your repositories try a higher number And we're gonna go headless on both of these where the difference between you these you'll notice one says JRE and the other one says JDK you need both of those so Install those I already have them installed once those install are installed We do need to generate some debugging keys. So we're gonna come down here This is another shell So one of the tools that that will install is a tool called key tool now You don't want to pick a place to put your debugging key so you can use it for multiple projects and When it comes to a debugging key, it's not really anything private now if you're gonna be publishing your app inside a You know the Google Play Store, you're gonna have to generate a private key Which in that case you do not want other people to see your information there But I just create a folder in my home directory called keys But you choose where you want to store your keys because you don't want to lose them Especially I mean debugging key isn't that big of a deal But your actual keys for when you're out your release keys if you lose them then Android or Google's gonna be like Ah, sorry, you can't update your applications anymore, but this is the command you're gonna run Okay, it's kind of long. I'll put a link in the description so you can copy and paste it but after installing those other packages you should be able to use this key tool and Mainly copy this as you are the only things you may want to change although all tutorials kind of say the same thing alias is gonna be the name of the key basically and then the key passes the password So we're gonna just do Android debugging key and pass so once we do that I'll go ahead and enter it's gonna create one called debugging dot key store. It doesn't really matter what you call it Just remember it's in here, and that's what's called Let's jump back to the game engine so we have everything installed and the keys generated in here What we need to do now you can Specify it for each project But it's easier just to set your edit up to use those files for all Projects so you don't have to do it individually. So let me say what I'm doing here in the editor We're gonna go to editor editor settings in this case So we're gonna scroll down here to the very bottom where it says export and we have Android, okay? and Assuming that this isn't here by default I don't think I put that in there I think I cleared all my information, but you're gonna want to use the user that we put which in the code I just put is Android debug key and then the Debug key store pass the password is Android. So whatever you put in the command line there That's what you put there. So those are set but now we want to set up where adb is installed What should be in us are? slash bin forward slash adb Your jar should be I believe The same directories where it should be. So we're gonna say us are bin and then here we should find Jar signer, okay, and that's just a program that's gonna sign the applications Now you want to tell it where you've stored your key, which like I said, I'm gonna have in Looks like I generated one inside this program before but we're gonna put one for our entire system Which I put in my home directory called keys Just remember where you put it and there it is now if you lose that key You can always create a new package, but like I said if you're putting it in the Google store This is a debug key, but your release key They will not let you update the application if you lose your key or your password for the key And you don't want to share that password or that key with other people, but the debugging key really doesn't matter now that We've done that We should be able to go to project project set of project settings Project export and now you can see those error messages are gone You can look through all the options over here But the main thing you you're gonna want to change here is every Android APK has its own unique name Which is really weird to me. I don't know who came up with this system. There's lots of Android I don't know who designed it, but it's a general rule It can be pretty much anything you want, but the general rule is it's your website backwards So if your website is google.com, it's gonna be com.google. I don't know who comes up with stuff So like my website is films like chris, but you can you can you can put out something else in there I don't think it really matters So my package name is going to become that films by chris in my case you put in your website or whatever name you've established and then Gen name here is going to use whatever you've named your project So if you change the name of your project it will change that so I called this test or tester I think so basically it's going to create a package and the application name is going to become that films by chris Dot tester whatever I called it and that's it tell it where we want to export it to I'll put it in the bin file here And we'll call it my app my app is going to be the name of the package here You can see I already did one of these as a test But that's not going to be the name of the program. That's just name of the file once it's installed It's going to be The name that you put here calm that films are chris and then it will show the name of our application under the icon Which is tester? We'll click export. Yes, confirm that yes override. Did I just already do that? No, it's exporting now It'll or create an APK for us, which we then can install on a system and that's it so it's on our our Desktop computer here you can copy it over and install it you can push it through ADP If I had an Android device with debugging installed on it or enabled on it a little Android icon will appear up here Somewhere by the play buttons you click that and you can test your application You will package it and push it over usually takes about 30 seconds So most of them are going to be testing on your desktop Then when you want to sit on that you click that and it pushes it over and installs it and runs it That's it. So yeah quick review on what we did we installed these packages Again, I'll put a link to this You know notes that you can copy and paste again I'm on a WN based system, but you'll want to search your repositories for whether whatever system you're using For these files you should find them at least some sort of version on them on most distributions of Linux And then once those are installed they've installed ADB the jar signer that we have to point Godotu, but I also installed this key gen tool or this key tool that allows us to generate keys for Signing Android applications. That is it. Check out the notes in the description of this video We're gonna get into more fun stuff in the next video. We're actually going to create something not just Go over how to set stuff up these first two videos are a little boring We're gonna get some more fun in the next videos, but I do thank you for watching visit films by chris comm that's Chris Okay, there's a link in description as always. I hope that you have a great day