building an apk wih Android Studio

  • #1, z blanoWednesday, 05. October 2022, 16:05 hodinky 2 years ago
    Hello everyone
    It's been a loong time but i'm trying again to build an apk, how to? where can i find a step by step guide for android studio?? thank you in advice!

    Bažant

    68 Posts


  • #2, z tom-barnetWednesday, 05. October 2022, 20:55 hodinky 2 years ago
    Hi, 

    Are you asking about bulidng it from Android project genereted in Visionaire or building an apk from scratch?

    Bažant

    37 Posts

  • #3, z blanoWednesday, 05. October 2022, 22:39 hodinky 2 years ago
    I mean from android project generated by VS

    Thank you

    Bln

    Edit:

    Building a signed apk from scratch is good also!
    i have the latest android studio installed on win11 desktop

    Bažant

    68 Posts

  • #4, z tom-barnetThursday, 06. October 2022, 10:50 hodinky 2 years ago
    Can't help you with building it from scratch, but regarding the project obtained from Visionaire, just open it in the Studio and hit Build->Build bundles/APKs...
    Be sure you have the latest versions of plugins in Tools/SDK Manager (select Android SDK).

    Before you do that tho, you can: 

    Rename the game in string.xml (in res/values)
    Rename the package in AndroidManifest.xml and build.gradle(app)
    Change the icon by right-click on res/drawable and selecting New/Image Asset.

    If you want to publish on google console though, it gets even more complicated. I also think they support only app bundles now, not apk anymore (at least for games larger than a certain size).

    Bažant

    37 Posts

  • #5, z blanoThursday, 06. October 2022, 11:23 hodinky 2 years ago
    ok!
    do i need to register my apk before i publish it? i have a mobile license of vs

    how can i do that?

    Thank you!

    Edit:

    I noticed that if i click with "Build->Build bundles/APKs" it produces a debug.apk

    is it ok?

    Bažant

    68 Posts

  • #6, z tom-barnetFriday, 07. October 2022, 08:34 hodinky 2 years ago
    Mobile license for VS concerns only VS. You need to create an account in Google Play Console, through which you will publish your app. There is a comprehensive manual provided by google that explains everything you need to do quite neatly. Or use youtube tutorials.

    In this case, you will also need to generate a SIGNED Bundle/APK... The Studio will let you create a signing key to sign your app. Dont lose it, or Google Play won't let you do any updates in case you have new versions of the same app. Select the "release" option (insetad of debug) to get the ready-to-use app. Don't mind how the Studio names the file.

    Again, I also think you will need to generate a bundle instead of apk. The process is the same.

    Bažant

    37 Posts