question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

is it possible to use lottie with androidx support library ?

See original GitHub issue

i use androidx support library and this is my app build.gradle:

`apply plugin: ‘com.android.application’ apply plugin: ‘kotlin-android’ apply plugin: ‘kotlin-android-extensions’

android { compileSdkVersion 28 defaultConfig { applicationId “me.semycolon.infotorbat” minSdkVersion 19 targetSdkVersion 28 versionCode 1 versionName “1.0” testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner” } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’ } } buildToolsVersion ‘28.0.2’ compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } }

dependencies { implementation fileTree(include: [‘*.jar’], dir: ‘libs’) implementation “org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version” // for using androidX commented // implementation ‘com.android.support.constraint:constraint-layout:1.1.2’ // implementation ‘com.android.support:appcompat-v7:28.0.0-rc01’ // testImplementation ‘junit:junit:4.12’ // androidTestImplementation ‘com.android.support.test🏃1.0.2’ // androidTestImplementation ‘com.android.support.test.espresso:espresso-core:3.0.2’

implementation 'androidx.appcompat:appcompat:1.0.0-rc01'
implementation 'androidx.recyclerview:recyclerview:1.0.0-rc01'
implementation 'androidx.annotation:annotation:1.0.0-rc01'
implementation 'com.google.android.material:material:1.0.0-rc01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0-rc01'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
//material-drawer
implementation 'com.mikepenz:materialdrawer:6.1.0-rc01'
//the core iconcis library (without any widgets)
implementation 'com.mikepenz:iconics-core:3.1.0-rc01'
//fonts
implementation 'com.mikepenz:fontawesome-typeface:5.0.13.0@aar'



//lottie  
implementation ('com.airbnb.android:lottie:2.6.0-beta19'){ exclude group: 'com.android.support' }

} app crashes with this exeption:java.lang.ClassNotFoundException: Didn’t find class “android.support.v7.widget.AppCompatImageView” on path: DexPathList…`

what’s the solution to this ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

4reactions
gpealcommented, Aug 16, 2018

I’ll release 2.6.0 without it and 3.0.0 with it

1reaction
gpealcommented, Sep 25, 2018

2.8.0 has been released with androidx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started with Lottie Animations in an Android App
The lottie-android library provides a LottieAnimationView which will take care of rendering your animations for you.
Read more >
How to integrate a Lottie library with android project that ...
I'm trying to integrate Lottie animation library version 3.4.0 and this version only supports Android X. How can I integrate with this ...
Read more >
Lottie Docs
Lottie is a library for Android, iOS, Web, and Windows that parses Adobe After Effects animations exported as json with Bodymovin and renders...
Read more >
Beginner's guide to Lottie animations in Android using Kotlin
This article explains how to use Lottie which is an open-source animation library in Android applications using Kotlin. Lottie is beautiful ...
Read more >
How to add Lottie Animation in an Android app - GeeksforGeeks
Approach: Step 1: Add this dependency into the App level gradle module of the project and then sync the gradle with the project....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found