Start a new topic
Solved

[Workaround] Unity 2019.3 gradle build fails "smallScreens"

I've just switched to Unity 2019.3 and couldn't build for Android anymore. The problem lies within the AndroidManifest and that Unity changed something in the way the manifest is merged (or not).


More info and workaround here:

https://forum.unity.com/threads/problem-modifying-androidmanifest-xml.729563/



In the LauncherManifest.xml (C:\_Dev\Unity\2019.3.0f6\Editor\Data\PlaybackEngines\AndroidPlayer\Apk) I've changed android:smallScreens="false", so that it's the same as in the Wikitude AndroidManifest in Unity (Assets/Plugin/Android/AndroidManifest.xml).


I'm not sure if Wikitude can "fix" anything here or if Unity will do something about it...


Hi,


We haven't encountered this issue, but I suppose you can also try to change the Wikitude AndroidManifest file to support small screens, so that you don't have to change the Unity installation. Please let us know if this helped.


Best regards,

Alexandru

Hi Alexandru,


you're right. It also works when editing the Wikitude AndroidManifest.xml (Assets/Plugin/Android/AndroidManifest.xml). I set android:smallScreens="true" there.


At first I didn't want to edit the Wikitude Manifest because I thought it would break something. In this case it shouldn't be a big deal. But I never looked into the android-screen attribute. So it's save to use "true" there?


Thanks again

Hi,


This attribute is used to specify what kind of devices the application supports. By setting this to true, the application will also show up in the Play Store for devices that are labeled as having a small screen, so it will increase visibility. However, these devices account for 0.6% of the market according to Google, so I doubt that it matters very much.

https://developer.android.com/about/dashboards


Best regards,

Alexandru

Login or Signup to post a comment