'unity AAB + PAD method does not build. (android app)

unity AAB + PAD method does not build. (android app)

I will upload the game to the Google Store. I made an android app with unity.

The AAB I created is 300MB. However, you can only upload apps smaller than 150MB to the Google Store.

//

I found the AAB + PAD method.

Referenced link: https://developer.android.com/guide/app-bundle/asset-delivery/build-unity

order i tried 1. I created all the scenes as AssetBundle. (Use "AssetBundle Browser", drag&Drop the scene to "AssetBundle tab - Configure") enter image description here enter image description here

2. Installed "Google Play Core". And I loaded the AssetBundle through "Asset Delivery tab - Add Foloder".

3. Set "Delivery Mode" to "Install Time". enter image description here

4. And the code to move the scene is set like the image below. enter image description here

5. Click "Google - Build And Run" in the top tab of Unity to build.

result The scene progressed properly, but the animation and video didn't work.

I can't put it on the store like this. Please help me to put it on the store..

// I Use unity 2019.4.25 And Minimum API Level android 8.1 Target API Android 11.0


******* I Fixed (21.09.29)****

I've posted a question like the one above before.

I found it myself. I thought it was too difficult.

I created the aab file as it is without creating an AssetBundle in a new project. (No need to create an AssetBundle)

Way (Prerequisite: Google Play Core package installed)

  1. Put all the scenes to be built in "buildSetting".
  2. Check the "BuildSetting - android app bundle" checkbox.
  3. Click Google - Build Android

Then it will be build. (There is an alarm that the size is large in the middle, but ignore it.) When the build is complete, aab file is created.

** important A file larger than the Google Console upload size will be created. Don't be discouraged, let's upload it to the Google console

It is possible to upload a file built in the "Google - Build Android" method even if it exceeds 150MB.

Hope everyone uploads the way it is.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source