3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

lottie-android導入時にExecution failed for task ':app:transformClassesWithMultidexlistForDevDebug'

Posted at

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があります。

image.png

2. ライブラリをexculdeする

app/build.gradleに記載するlottie-androidを下記のように書き換えます。

implementation('com.airbnb.android:lottie:2.6.0-beta19', {
    exclude group: 'com.android.support', module: 'appcompat-v7'
})

参考

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?