I'm receiving (from bugsense) crash reports from my App on Android versions below 3. But the App has declared in the manifest:
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
So, as soon as the user makes a move, the App crashes.
How is that possible? I knew that install should fail with a "package analysis failed" message. Do I have to implement an in-App Android version check? Or am I missing something in the manifest?
an example:
0java.lang.NoSuchMethodError: xxx.xxx.xxx.MyActivity.getFragmentManager
1at xxx.xxx.xxx.MyActivity.onCreate(MyActivity.java:98)
2at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
3at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
4at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
5at android.app.ActivityThread.access$1500(ActivityThread.java:117)
6at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
7at android.os.Handler.dispatchMessage(Handler.java:99)
8at android.os.Looper.loop(Looper.java:123)
9at android.app.ActivityThread.main(ActivityThread.java:3729)
10at java.lang.reflect.Method.invokeNative(Native Method)
11at java.lang.reflect.Method.invoke(Method.java:507)
12at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:874)
13at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:632)
14at dalvik.system.NativeStart.main(Native Method)
I bet I don't have SuchMethod
in Android 2.3.3
Anyway, total errors are only 3
, upon about 1k users and 3,5k sessions per day, this week. So think about this Q as an exercise.