Lottie
Render After Effects animations natively on Android and iOS, Web, and React Native http://airbnb.io/lottie/
LottieはAirbnbが提供するアニメーション表示用のライブラリです。After Effectsで作成したアニメーションをネイティブアプリで表示することができます。
https://github.com/airbnb/lottie-android
Execution failed for task ':app:transformClassesWithMultidexlistForDevDebug'
com.airbnb.android:lottie:2.6.0-beta19導入時に発生しました。Projectのライブラリ依存状態によって起きる場合と起きない場合があります。
解決策
Lottie内のcom.android.support:appcompat-v7をexculueして解決しました。
1. ./gradlew app:dependenciesでライブラリの依存関係を調査
Lottie配下にcom.android.support:appcompat-v7があります。
2. ライブラリをexculdeする
app/build.gradleに記載するlottie-androidを下記のように書き換えます。
implementation('com.airbnb.android:lottie:2.6.0-beta19', {
exclude group: 'com.android.support', module: 'appcompat-v7'
})
