App crashing on Android API less than 5.0(lollipop)

前端 未结 4 1277
一整个雨季
一整个雨季 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:57

    I just had this problem and solved it by adding the following line to the applications AndroidManifest.xml as an attribute on the application tag:

    android:name="android.support.multidex.MultiDexApplication"
    

    I have two apps which share the same resources and libraries. The only difference is in the exposed interface. I added multidex to both but forgot to put the above attribute in the manifest for one. The NoClassDefFoundError did not help much at all.

    You can also check out the following: http://developer.android.com/tools/building/multidex.html

提交回复
热议问题