My app crashes on Android 2.3.3 phone

I modified the app using this and updated the Minimum and Target SDK, It installed successfully on my old phone, but when I opened it, it crashed. How to fix this?

Use logcat to find out what happens

Taifun

Your App is probably using something like an extension that isn't compatible with Android 2.3.3

I have no extensions on my app.

Almost all of my apps are like this.

What common features do they have? Also, are they intended for Android 2.3.3 or do they support the highest versions too?

Wdym common features? Do you mean the features like OrientationSensor?

Exactly as I ask - you said:

So it is likely they have something in common that brings about failure.

And:

Are they intended for Android 2.3.3 or do they support the highest versions too?

No. Not intended for 2.3. But also supports newer versions of Android.

There are also some components in AI2 that require a minSdkVersion higher than 7.

What components?

Firebase for example.

Well, you know that the minimum sdk for Apps is now Android 4.0. If you modify the manifest and something is not working anymore, then there are 2 possibilities

  1. your manual manifest modifications don't have been correct
  2. you are using features, which are not available for older devices

Use logcat to find it out

Taifun

Well, Google stopped supporting v2.3 about 14 years ago, it is possible that a few of the App Inventor features do not support v2.3 either. Anything from component types that did not exist back then to changes in how the background of an App is handled. To be compatible with an old version of Android the App needs to be very basic. Since Android is effectively a modified version of Linux, you might have more success coding 'by hand' with Java or C++.

...do you use?

Post the aia and upload the modified APK (with minSdkVersion=7) to Google Drive and post the link.

https://drive.google.com/drive/folders/1DLAIkSXAZ63Tq1nfWo98dlgNdPkIg1iX?usp=sharing
Here you go.

The minSdkVersion was not set to 7, it is still 14 (Android 4.0.1/Ice Cream Sandwich).

Open the version with "modified without keystore" please.

The same.

Try this:

1 Like