App crashing on Android API less than 5.0(lollipop)

前端 未结 4 1276
一整个雨季
一整个雨季 2021-01-12 23:38

The problem I am facing is that my android application works well on devices having API 5.0 and above but crashes on devices having Kitkat(4.4) and its corresponding lower v

4条回答
  •  抹茶落季
    2021-01-12 23:45

    One issue that you may face is this one, as explained in the documentation:

    multiDexEnabled true
    

    Applications that use multidex may not start on devices that run versions of the platform earlier than Android 4.0 (API level 14) due to a Dalvik linearAlloc bug (Issue 22586). If you are targeting API levels earlier than 14, make sure to perform testing with these versions of the platform as your application can have issues at startup or when particular groups of classes are loaded. Code shrinking can reduce or possibly eliminate these potential issues.

提交回复
热议问题