IndexableRecyclerView
IndexableRecyclerView copied to clipboard
tinypinyin.lexicons 依赖冲突
Error: Program type already present: com.github.promeg.tinypinyin.lexicons.android.cncity.BuildConfig
大神啊,这个错误怎么解决呢,还请指教
我也遇到了,加上这个排序就不能用了。坑爹 //使用这个配置的话,拼音排序无法正常使用 configurations { all*.exclude group: 'com.github.promeg' }
应该是 compile 依赖导致的,在 gradle 5.1以后我也遇到了这个问题,单独依赖 拼音库-TinyPinyin (jcenter 地址) 即可使用,完整依赖如下:
implementation ('me.yokeyword:indexablerecyclerview:1.3.0'){
exclude group: 'com.github.promeg'
}
implementation 'com.github.promeg:tinypinyin:2.0.3'
implementation 'com.github.promeg:tinypinyin-android-asset-lexicons:2.0.3'
implementation 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.3'
若需适用于 java 的,可添如下依赖:
implementation 'com.github.promeg:tinypinyin-lexicons-java-cncity:2.0.3'
应该是
compile依赖导致的,在 gradle 5.1以后我也遇到了这个问题,单独依赖 拼音库-TinyPinyin (jcenter 地址) 即可使用,完整依赖如下:implementation ('me.yokeyword:indexablerecyclerview:1.3.0'){ exclude group: 'com.github.promeg' } implementation 'com.github.promeg:tinypinyin:2.0.3' implementation 'com.github.promeg:tinypinyin-android-asset-lexicons:2.0.3' implementation 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.3'若需适用于 java 的,可添如下依赖:
implementation 'com.github.promeg:tinypinyin-lexicons-java-cncity:2.0.3'
试了下gradle 5.1.1,还是会有问题
应该是
compile依赖导致的,在 gradle 5.1以后我也遇到了这个问题,单独依赖 拼音库-TinyPinyin (jcenter 地址) 即可使用,完整依赖如下:implementation ('me.yokeyword:indexablerecyclerview:1.3.0'){ exclude group: 'com.github.promeg' } implementation 'com.github.promeg:tinypinyin:2.0.3' implementation 'com.github.promeg:tinypinyin-android-asset-lexicons:2.0.3' implementation 'com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.3'若需适用于 java 的,可添如下依赖:
implementation 'com.github.promeg:tinypinyin-lexicons-java-cncity:2.0.3'试了下gradle 5.1.1,还是会有问题
我的环境是这个,目前是没有问题的。