Companion Problem


Error from Companion: method com.google.appinventor.components.common.HorizontalAlignment.fromUnderlyingValue argument 1 has type java.lang.Integer, got java.lang.String

Post the aia.

Btw, please change this (nonsense):
@MohamedTamer

grafik

EDIT:

1 Like

It’s a default limit of discourse. I’ve now lowered the limit :+1:
Btw, it seems the topic you linked is inaccessible.

1 Like

demo.aia (1.1 KB)

Yes this is happening when any arrangement (or) screen horizontal align is set to center / right.

If horizontal align is set to left it’s not throwing this error. This error is only in companion. In APK everything is looks good

Companion update might fix this error i am thinking

Oh sorry, it was from the Power User forum:

Screenshot

1 Like

At least for me (on a Pixel 4XL, Android 12).

1 Like

The companion issues should be solved now:

1 Like

But the Companion app (latest version) crashes now on Android 12+.

1 Like

Both probllems are solved now with the latest update. :ok_hand:

But File.Exists for the assets does NOT work with Companion (with FileScope = Asset):
APK works.

Summary

In addition, if you Refresh Companion:

After refreshing the next time, the error disappears …
So it only works on every 2nd attempt.

2 Likes

grafik

1 Like

Btw, there are of course more important things to solve than this! And even more so since it works with the APK.

2 Likes

Workaround:

1 Like