building an apk wih Android Studio

  • #1, by blanoWednesday, 05. October 2022, 16:05 A year 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!

    Newbie

    68 Posts


  • #2, by tom-barnetWednesday, 05. October 2022, 20:55 A year ago
    Hi, 

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

    Newbie

    37 Posts

  • #3, by blanoWednesday, 05. October 2022, 22:39 A year 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

    Newbie

    68 Posts

  • #4, by tom-barnetThursday, 06. October 2022, 10:50 A year 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).

    Newbie

    37 Posts

  • #5, by blanoThursday, 06. October 2022, 11:23 A year 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?

    Newbie

    68 Posts

  • #6, by tom-barnetFriday, 07. October 2022, 08:34 A year 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.

    Newbie

    37 Posts