Didn't find class “android.support.v7.internal.widget.TintManager” on path: DexPathList

前端 未结 6 978
心在旅途
心在旅途 2020-12-17 20:53

I have updated support libraries to version 23.0.1 and started getting this error.

Didn\'t find class \"android.support.v7.internal.widget.TintManager\" on p

相关标签:
6条回答
  • 2020-12-17 21:00

    There are some combinations of libraries and tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the android-support libraries that is not the latest version (or in particular a version lower than your target sdk version.)

    0 讨论(0)
  • 2020-12-17 21:02

    I downgraded appcompat-v7 from:

    compile 'com.android.support:appcompat-v7:23.1.1'

    to:

    compile 'com.android.support:appcompat-v7:23.1.0'

    and it worked.

    0 讨论(0)
  • 2020-12-17 21:08

    When using Tabs with Viewpager, it causes problem: So making a solution to it, try by downgrading your support:appcompat-v7:23.2.1 to 23.2.0 or just decrease it by one at last digit. I found the solution, hope you also get it. :)

    0 讨论(0)
  • 2020-12-17 21:10

    The Support V4 library serves as the base of much of the Android Support Library and contains many of the classes focused on making backward compatibility much easier.

    Try adding

    com.android.support:support-v4:23.1.0
    
    0 讨论(0)
  • 2020-12-17 21:17

    Somebody answered to set higher version while somebody says lower version. This is because gradle uses upper version silently even if you defined as 23.1.1. (At this time, it uses 24.0.1 to compile)

    I recommend you to check correct version is involved by gradlew app:dependencies -q command.

    To fix its upper version handover, set force = true to all of support libraries as below.

    compile ('com.android.support:support-v4:23.1.1'){
        force = true;
    }
    compile ('com.android.support:appcompat-v7:23.1.1'){
        force = true;
    }
    compile ('com.android.support:design:23.1.1'){
        force = true;
    }
    compile ('com.android.support:cardview-v7:23.1.1'){
        force = true;
    }
    compile ('com.android.support:recyclerview-v7:23.1.1'){
        force = true;
    }
    
    0 讨论(0)
  • 2020-12-17 21:18

    I had the same issue after upgrading to Android Studio 2.0. I updated my dependencies that weren't current and now it is running fine.

    By cross referencing our gradle files, I believe that you need to update your design support library:

    compile 'com.android.support:design:23.1.1'
    
    0 讨论(0)
提交回复
热议问题