Didn't find class on path: dexpathlist

后端 未结 8 1341
鱼传尺愫
鱼传尺愫 2020-12-10 03:18

Seriously, i don\'t know what to do to solve this problem. My android project was working fine, until i needed to import a library with Maven. Since that, everything starte

相关标签:
8条回答
  • 2020-12-10 03:56

    Make sure that any compatibility lib jars that you're using in your main project (like android-support-v4.jar) are the same versions as those used in any of the projects that your main project references.

    I had this same problem and what solved it was to copy and paste the android-support-v4.jar from another library project (that my main project was referencing) and pasting it into my main project's /libs folder.

    0 讨论(0)
  • 2020-12-10 03:59

    I did the following steps to resolve the issue on Android Studio.

    • open file ./app/build.gradle
    • reduce compileSdkVersion (e.g. 22 -> 21)
    • click 'sync project with gradle file'
    • change back to the original compileSdkVersion (e.g. 22)
    • click 'sync project with gradle file'

    recompile and it should work.

    0 讨论(0)
提交回复
热议问题