userq
userq

Reputation: 51

Unity Build and Run aab file - nothing happens

I am using unity addressables for on-demand packs and also using google instant play plugin to build an instant app. I am using the unity's Build Settings -> Build and Run with my device connected. I have developer debugging enabled and the device is connected via usb. The aab file is built and saved on my local machine and when the build completes, nothing happens on the device. Shouldn't the game just start on the phone? When I search the phone, the app is also not anywhere to be found.

Any solutions?

Upvotes: 0

Views: 3277

Answers (1)

userq
userq

Reputation: 51

So here is more of a workaround for this problem. The real solution needs to come I believe from either Unity or Google teams.

FIX:

  1. Go to File -> Build settings -> player settings
  2. Change the Company Name: com.yourname.currentname (to something else). Let's say: com.yourname.currentname2. And do the same for the packagename under "Other Settings".
  3. Build and Run (having the device connected via USB and USB debugging enabled)

It should work. If still doesn't, make sure you uninstall your game (assuming you had it installed before on the device). If not installed, install it from the google play store or from an older apk, open the app info and clear all cache and data. Then uninstall it. Try the above steps for the fix.

On my side, I already had a published google play store app and now building an instant app for the same build. I uploaded a few instant app versions on the play store and installed them on the device. At that point I am not sure how google play handles the different versions (installed and instant one) and something terribly gets messed up. Is it caching some files somewhere? So aiming at a clean state is the key.

Upvotes: 2

Related Questions