Fix dependency resolution errors.
twitter-textでツイート数を数えるために下記の公式ライブラリを使おうと思ったら、
元々使ってたtwitter-kit-androidに含まれていたクラスと重複エラーを起こしてしまった。
build.gradleを覗いてみる
implementation 'com.twitter.sdk.android:twitter:3.1.1' implementation 'com.twitter.twittertext:twitter-text:3.0.1@jar'
起こったエラー
Duplicate class com.twitter.Regex found in modules twitter-text-1.14.3.jar (com.twitter:twitter-text:1.14.3) and twitter-text-3.0.1.jar (com.twitter.twittertext:twitter-text:3.0.1) Go to the documentation to learn how to Fix dependency resolution errors.