Home Game Development Building Android .aab from Unity

Building Android .aab from Unity

0
Building Android .aab from Unity

[ad_1]

I have a VR game developed in Unity for Oculus and I want to create an Android App Bundle to upload it to the play store as a mobile game too. When I go into build I select this options: Building options

And here is the problem, after finishing compiling it throws some errors:

1.

OverflowException: Value was either too large or too small for an Int32.
System.Number.ThrowOverflowOrFormatException (System.Boolean overflow, System.String overflowResourceKey) (at <a40b0ad4a868437393ad434631fb6ff1>:0)
System.Number.ParseInt32 (System.ReadOnlySpan`1[T] value, System.Globalization.NumberStyles styles, System.Globalization.NumberFormatInfo info) (at <a40b0ad4a868437393ad434631fb6ff1>:0)
System.Int32.Parse (System.String s, System.IFormatProvider provider) (at <a40b0ad4a868437393ad434631fb6ff1>:0)
System.Convert.ToInt32 (System.String value) (at <a40b0ad4a868437393ad434631fb6ff1>:0)
UnityEditor.Android.BundleToolWrapper.CheckApksSize (UnityEditor.Android.AndroidJavaTools javaTools, System.String stagingArea, System.Action`1[T] progress) (at <c8df8c387877487dae452aacc833e6ce>:0)
UnityEditor.Android.PostProcessor.Tasks.CheckApksSize.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <c8df8c387877487dae452aacc833e6ce>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <c8df8c387877487dae452aacc833e6ce>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, AndroidPlayerBuildProgram.Data.AndroidPlayerBuildProgramOutput buildProgramOutput) (at <c8df8c387877487dae452aacc833e6ce>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <c8df8c387877487dae452aacc833e6ce>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <5092d70d16a64dd9a555dd50f38aead0>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Build completed with a result of 'Failed' in 294 seconds (293528 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&
UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002da] in <5092d70d16a64dd9a555dd50f38aead0>:0 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <5092d70d16a64dd9a555dd50f38aead0>:0 
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

The strange thing for me is that the .apk compiles just fine. I need the aab because the game is now around 2GB and will likely be more in the future. Where does this error come from? is it a code problem or something related to configurations?

[ad_2]

Previous article Game Design Aspect: PlayCrafting Student Spotlight Update
Next article Xbox Startup Screen Is Now Full-Page Modern Warfare 3 Ad
Hello there! My name is YoleeTeam, and I am thrilled to welcome you to AmazonianGames.com. As the premier destination for all things related to Amazon Games' universe, we are dedicated to providing you with the most exciting and immersive gaming experiences out there. From captivating visuals to exhilarating gameplay, our website is packed with comprehensive insights, updates, and reviews to keep you ahead of the game. Whether you're a seasoned gamer or new to the scene, I am here to guide you through this virtual frontier. If you have any questions or suggestions, feel free to reach out to me at john@yoleesolutions.com. Embark on your Amazon gaming journey today with AmazonianGames.com and let the adventure begin!