We need to make our APK, so we need to make our APK to do that.
We will head over to file in the top left, but before you do, make sure you connect your with an USB
to your computer with with your mobile, to your computer.
So basically you need to plug that.
So I'm gonna take my USB just for a moment, and I'm gonna plug that to my computer and with my phone.
So just wait a moment.
And it's connected by now.
And that's pretty cool.
And once you connect that up, we are really basically we are ready to make that.
So let's head over to top left file.
Then we're going to move over to build profiles.
And what we're gonna do.
Firstly make sure you in Android basically uh a check in your build profile tags, uh, Android.
And it should act.
Basically, the active logo should be next to this android, and we need to do some settings.
So we're going to click on this player settings in the top bar.
And firstly we need to name the company name.
So name it is something else.
Don't name it.
Don't leave it something like default company name it whatever you like.
So I just name it.
As you can notice that code, which is my YouTube channel and the product name is basically the game
name.
So I just type space.
You can just make what you can name the game whatever you like.
And we're gonna leave the version 1.0 and you have to drag an icon over here.
If you have, then you can just drag it or you can leave it empty as well as well.
Like we drag it once we meet for our web and once we meet, uh, early for our PC, so I'm not gonna
explain it again.
And then what I'm gonna do, I'm gonna move over to my resolution and presentation section.
And over here, we're going to leave it to full screen window and make sure you scroll down a bit and
choose this orientation.
So move over to a default orientation inside this resolution and presentation section.
So in the bottom you can see default orientation.
So we're gonna choose auto rotation.
And we're gonna uncheck this portrait and portrait upside down because this game is landscape mode.
So that's why we're gonna leave it landscape right.
And let's landscape leave as checked.
Because since this is a this game is our landscape mode.
So that's why.
And now what we're gonna do we're gonna move over to Splash Image.
And we already knew this section.
And if you just a little bit confused, then you can check that out in PCB lecture.
So I guess the lecture something like 67 I don't know.
But check that in PC build or PC build.
So you can just move over to that section and you can check out the lecture in order to understand how
you can just put your custom logo.
So I'm not gonna explain it twice.
So I'm gonna move over to next section which is other settings.
So let's click on it.
And we need to do some settings right over here.
And it's pretty much important to make it for our APK.
So that's why this section is a little bit important.
So we're gonna scroll down and over here as you can notice it says package name.
And we just getting in warning says the package name must follow the convention.
Firstly you need to type this com.
Then you need to type dot.
Then you have to pass the name which is your company or which you name it in the top right over here.
Uh company name, which is in my case, uh, bad core or basically the studio.
And you need to type dot and after that, you need to pass the product name.
So in my case, space or the game name.
So what we need to do right over here.
So firstly we need to type this com.
Then we need to type this dot.
And over here we need to pass the company name.
So the company name I pass which is bad code or basically the studio name.
So make sure you just go to top of your top scroll basically scroll up and check whatever you name it
company name.
So in my case, as you can notice, I have named it Bad Code.
So I'm going to move over to that section.
So after typing com dot we need to pass the studio name or the company name, which is bad code.
And after that, what we need to do now, we need to type this dot one more time, and we have to pass
the product name or basically the game name as we just did over here.
If I scroll up, as you can notice, which is a space.
So we're going to pass uh, after typing dot, we're going to pass this space.
And once you are done you can just leave this version 1.0 and bundle version code one.
But let's suppose you just making uh the APK second time, then version, you can pass something like
1.2 or 1.1 or to something like that.
It's basically up to you, but make sure you just increase by one unit something like 1.1.
And also make sure you make this bundle version code to something like two.
If you're making your game second, uh, second time or you just building up the game second time.
Then put this bundle version code two and this version to something like 1.1.
So since we're making for the first time.
So I'm gonna leave it to 1.0 and this bundle version code to one and minimum API level.
As we can see, we're gonna leave it to 6.6.0 marshmallow, which is API level 23.
And make sure you target API level choose the highest one.
So in my case, I'm gonna choose a Android 13.0 13.0.
Since a Play Store taking API target level, which is 33, I guess you can check out a policy of play
console and play console or Play Store basically, and check the minimum target API level.
So make sure you choose the highest one.
So in my case I'm gonna choose 33.
But I don't exactly know that how much a play store taking by now, but make sure you choose the highest
one.
So I'm gonna go with 13.0.
Is 13.0 API level 33.
Choose the highest one.
Uh, I guess Play Store is taking minimum 33 or 34, I don't know, basically choose the, uh, choose
the biggest one.
Sorry, choose the highest one.
So make sure you just do that.
And after doing it a script backend, it says, I'll keep.
We're gonna choose this mono uh, for APK we need to choose this mono or you can leave it to ill to
cpp.
CPP basically means uh, C plus C programming language, a language or C++, basically.
Uh, so we're gonna leave it to mono since we're making the APK.
So we're gonna choose this mono.
And let's suppose we're making the a B bundle.
then we need to choose this IL two, IL two cpp, which is, uh, which is a pretty necessary to, uh,
to build up your app build.
And once you, you gonna upload your game on play Store.
So make sure you need to choose IL two CPP.
Uh, so since we're making the APK so scripting backend, we're gonna choose, uh, mono.
And if we're making our AAB uh, file to upload on Play Store, then we need to choose this IL two cpp.
Basically it's gonna convert our C code to C++.
So since we're making the APK so we're gonna leave it to mono.
Let's scroll down.
So basically this other settings uh, this uh other settings, other settings is pretty much a important
thing in order to make the APK.
So make sure you just do the thing as I am doing step by step.
And we're gonna scroll down and we need to.
We don't need to do anything right over here by now.
So we can just move over to Next settings which is publishing settings.
So we're going to move over to that.
And we need to pass a key store basically a password type.
So once you making the build of the APK or ARB 22 and give the password so we can create our password
to create our password, first we need to click on this key store manager.
So just click there as you can see key store.
So we're going to click on this store tab.
In the top left side we can see Key Store.
So just click on it and we may we basically creating the password for the first time basically the key
store.
So that's why we're going to just move over to this create new and anywhere.
So we're going to click on this anywhere.
And we can just make a separate folder for our key store.
So let's make that.
And it's going to be fine to keep our project clean and to make our project clean simply.
So what we're going to do, we're going to right click then New new folder.
And I'm going to call this folder to something like Keystore.
So let's call this folder Keystore Keystore.
And we're going to open that up by double clicking on it.
And let's click on the save button in the bottom right.
And now we just created a folder for our keystore.
And now we need to pass the password.
So pass A is strong.
Basically create the password so you can choose any password that you like.
So for me I'm going to choose something like 12345678.
But make sure you just keep a strong password.
So once you're gonna make your game for the next and next time, basically once you're gonna build the
game or the APK or the AAB file for the next time you need to provide this password and make sure you
just make the password strong for, uh, for courses.
I'm just leaving it to leaving it to something one, two, three, four like that.
Simple.
So I'm going to pass.
We need to confirm the password.
So 12345678.
And after doing that we need to pass the alias basically a string name you can assume and you can just
name it whatever you like.
So I'm gonna say something like that.
And over here we need to pass the password once again.
So I'm going to pass 12345678.
And we need to confirm the password.
So let's uh put our password 12345678.
Now it's fine.
So once we are fine in the bottom, we're gonna be able to notice our at key button just gonna be enabled.
So just click on this add key and it's going to add that up.
So let's click on this add key.
Just wait a moment.
It's gonna take a few seconds.
And once we're done we need to choose.
We need to confirm the password one more time.
And as an alias you can just choose.
Basically, you can pass a string, whatever you like.
It's basically up to you.
Sorry.
So it says keystore and key created.
Key bat, bat created and user.
Do you want to set them as your project key store and project key?
Yes, we do one since we created our first time.
So I'm going to click on this.
Yes.
So now it's done.
And now what we have to do uh we basically need to confirm the password right over here.
So just wait a moment and you will see.
So it's automatically pass our alias.
As you can notice, it says pad and the password over here we can notice.
And, uh, so just wait a moment.
And once we done what we can do, we can just build our game.
So before you build the game, basically the APK check one more time.
So I'm gonna click on this publishing settings right over here to collapse.
And make sure you check all of the things one by one.
So firstly I'm gonna move over to my resolution and presentation.
Let's check it one more time and it's fine.
Let's move over to Splash Image.
And we can click on this preview in order to see that.
And it seems fine and I don't mind unity logo.
So I'm gonna uncheck this.
So unity logo.
And if we just click on this preview button by now we can see our custom logo.
And after the custom logo just uh load up, we can see we just move it over to our game scene and we
can just move over to our other settings.
Let's check it one more time.
And this seems pretty much fine.
So let's move over to our publishing settings.
And this is also great.
Uh, so we basically have done the settings.
Uh, fine.
So we can simply cut this tab and we can simply cut this build profiles tab as well.
Or you can just click on this build and run right away.
But I'm gonna cut it.
And before we make the game we need to make sure that menu is scene is the default one.
Basically once we open up our game we just want to load up the menu.
And inside that menu we do know we have the play button, exit button and the about button.
So if we click on that play button then we just want to move over to this sample scene or this level
scene.
So to check that make sure you just go to top left file then build profiles and you need to click on
this open scene list.
So you're gonna be in Android or Windows.
So just click on this open scene list and make sure all of the scene is right over here.
Let's suppose any of this is missing.
So if I just delete that as you can notice nano scene is missing and missing.
So what we can simply do for that we're going to move over to our project tab assets.
And we will head over to our assets folder.
So sorry.
We will head over to our scenes folder.
And we can see the scene is over here.
So we're going to take that and we're gonna drag it into our scene list.
And we're gonna drag it in the top this scene.
Because this one, this one should be the default one.
So that's why.
And I'm gonna cut this tab now and I'm gonna double click on this menu in order to move over to that
menu scene.
So now this seems pretty much cool as you can notice.
And what we can do now, we can build our APK.
To do so, let's move over to top left file one more time, then build profiles in the bottom and we
can just create.
So make sure you select Android in this Build profile tabs build profile tab in the left side.
So a and also make sure this Android is active.
And we can see indeed it's active.
And you can take a look right over here if you need to do some settings right over here.
And we can see build a a a bundle so we can skip this.
Uh, since we are making the APK so we don't need to do something right over here so we can make the
game right away.
But before you make the game, make sure you just plug, uh, you plug your phone with an USB to to
with your computer.
So make sure you just do that and it's not gonna work at all.
So we're going to click on this build and run.
So just wait a moment I need to plug my charger.
Sorry for the inconvenience.
And this is fine.
So now what we can do.
We can simply click on this build and run in the top right.
So let's click on it.
And we're going to create a folder for this APK.
So let's create a apk build folder.
So let's right click then new folder.
And I'm going to call this folder apk apk Pil.
So let's call that and we're going to open that up by double clicking on it.
So let's open that up by double clicking on it.
And we have to name the file name or basically the game.
So I'm going to call it space as I name it there.
Uh A, which is product name.
So after doing that let's click on the save button.
And as soon as we click on that save button we can see which is getting an error okay.
And this is pretty much fine.
Basically what we need to do we need to check uh, our basically we need to check that we need to open
that.
We need to enable our developer option.
So USB debugging is on.
We need to check that out.
Okay.
So this is basically fine.
And let's build and run one more time.
And let's click on the save button.
Yes.
Preparing built.
So we get an error.
Just wait a minute and we need to fix that.
And we're gonna fix it in the next lecture.