Only on Lollipop: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/squareup/picasso/Picasso;

后端 未结 3 1788
忘掉有多难
忘掉有多难 2021-01-15 07:47

I encounter this problem only on lollipop version. I can run the app easily on versions above lollipop. The error shows up when I run the app in my application file:

3条回答
  •  爱一瞬间的悲伤
    2021-01-15 08:18

    If publishNonDefault true was defined in libs build.gradle, please remove it or make it false. Please try. I have resolved this issue by removing publishNonDefault true in build.gradle of lib which occurred NoClassDefFoundError.

    If not working, please add dexOptions { preDexLibraries false }.

提交回复
热议问题