Unoptimized APK from Stencyl

Guzzz

  • Posts: 556
After I uploaded apk to Google Play Consol I'm trying to publish Alpha etc. Now google refuses to use my APK because
Quote
Unoptimized APK
Warning:

This APK results in unused code and resources being sent to users. Your app could be smaller if you used the Android App Bundle. By not optimizing your app for device configurations, your app is larger to download and install on users' devices than it needs to be. Larger apps see lower install success rates and take up storage on users' devices.

Resolution:

Use the Android App Bundle to automatically optimize for device configurations, or manage it yourself with multiple APKs.
So now I'm prompt to use Android Studio to make a proper bundle. Not that I'm against learning a new tool but just not at the stage where I'm trying to prepare for publishing on Google Play.  Aside of dealing with these  damn Google's tracks, testers and certificates now I need to learn this f###ing Android Studio which is insane, it crashed my comp which is usually handles video editing and 3D rendering.  I need to learn how to update this crappy Android Studio where I am missing Gradle (whateveritis) at the same time when the app says everything is up-to-date with Google Articles that are not updated like for ever... my point, why I can't just upload APK onto GooglePlay and be done with it? Am I just unlucky mofo and I'm the only one who struggles to publish his game or there is something wrong with Stencyl?
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

HeadlessD is my dungeon-crawling game on iOs and Android. Made in Stencyl. https://www.headlessd.com/

gcarne

  • Posts: 133
I cannot help, except for saying that you are not alone. I have had a similar situation which is just not explainable. I did the mistake of updating Stencyl to 4.0 and ran into a large number of problems, amongst other I lost the crucial KeyStore-file resulting in me having to create a new game in Stencyl and a new game in the Google Play Console thereby loosing all the good download numbers and references I had acquired in Google Play over the past year or two.  One of the many problems is that my game now, although it is exactly the same game with no changes whatsoever (I inserted a copy of the old game into the new one), is about twice the size it originally was. I took a look Android Studio to make a bundle but had to give up.  For me it was just to messy and too difficult to understand.

grmata

  • Posts: 87
This is a new change from Google Play. Stencyl will need to be updated in order to create .aab packages instead of .apk.
There was a Post on how to do this manually in the build.gradle file. I'm searching for it now as well.

Here's the link to the post about how to do it manually.

http://community.stencyl.com/index.php/index.php?topic=58765.msg308841#msg308841

Justin

  • *
  • Posts: 4716
The aforementioned update has been done, so when you publish for Android with the latest build, it'll export as an aab instead of an apk.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

designpeg

  • *
  • Posts: 731
The aforementioned update has been done, so when you publish for Android with the latest build, it'll export as an aab instead of an apk.
  That's good to know! I've been putting off rebuilding my app and updating it as I didn't want to get into learning to use Android studio at the moment!

Guzzz

  • Posts: 556
This is a good news! Thank you, Justin!
Perfect timing, cause I’m planning to update my game on GooglePlay. Since I’m working on the update I was wondering is it possible to get Ask For Review pop-up working (http://community.stencyl.com/index.php/topic,59374.msg310655.html#msg310655)? Is there anything like this for Androids?

P.s. can you guys turn mobile version for this forum on? It’s quite painful to write and read the forum on mobile.
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

HeadlessD is my dungeon-crawling game on iOs and Android. Made in Stencyl. https://www.headlessd.com/

Guzzz

  • Posts: 556
I'm trying to use the latest Stencyl build (10471) to make abb but it gives me only errors. I attached the log.
I guess there is something wrong with:
Quote
error: undefined reference to 'hx::gMultiThreadMode'
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

HeadlessD is my dungeon-crawling game on iOs and Android. Made in Stencyl. https://www.headlessd.com/

Guzzz

  • Posts: 556
Sometimes Stencyl tries to show me that it doesn't like blocks about the width of the text, sometimes just some random code, now it doesn't like Heyzap extension (see attachment).

I've done a huge mistake by downloading the latest version! It blew off my project completely! Now it's imposable to publish, test the game nor use other versions of Stencyl on my computer. You guys shouldn't suggest downloading the version which cases such huge damage. Now I have to build a new set up on another computer with an older version of Stencyl hoping that I will able to run my damaged project there... such a blow...
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

HeadlessD is my dungeon-crawling game on iOs and Android. Made in Stencyl. https://www.headlessd.com/

Justin

  • *
  • Posts: 4716
Hey Guzzz! Sorry about this.

The first error you ran into (undefined reference to 'hx::gMultiThreadMode') is likely caused by old code being cached and not being updated when you build your game in the new version. You should be able to fix this just by cleaning your game.

The errors you ran into with the text blocks, I'm a little surprised about. Some text blocks were updated recently to fix issues with line/letter spacing and how text draws when scaled. Stencyl has a mechanism for automatically regenerating code when a change like this is made. For some reason, it doesn't seem to have happened for you, so it makes you open the behavior to trigger the code update. This is why the errors went away after opening the behavior.

HeyZap is a third-party extension so I don't know right away what might have happened with that. If you want to message me on discord, we can try to figure that out live, or you can continue the conversation here.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Guzzz

  • Posts: 556
The 1st one resolved with cleaning the project indeed.
The major part of my frustration is I have perfectly working game on AppStore/Google Play, on iPhone and on my Samsung with the build I made before updating. Now when I'm making an update for my game I'm blocked with errors I cannot fix and this damn 3-rd party waving off with which I'm very very familiar with. It's like asking Apple or Samsung why I can't connect Samsung to my Mac: every each of them would say they don't know what to do with 3rd parties... now it feels like I'll need an eternity to resolve this blocker...
I am ready to solve it live or anyhow. I'm on Discord but you seem to be offline all the time.
Watch my new game http://www.hitandcrash.com based on my comic strip https://www.instagram.com/hitandcrash

HeadlessD is my dungeon-crawling game on iOs and Android. Made in Stencyl. https://www.headlessd.com/