Closed tarek13 closed 5 years ago
Can you add the line below to app/gradle dependencies?
implementation "androidx.appcompat:appcompat:1.0.2"
can i include library without convert my project to androidx
Hi @tarek13 , Did you manage to include the library without converting the whole project to AndroidX?
yes
Please suggest how?
i tried put it doesn't work so i need help from @faruktoptas to solve this issue
I assume, only solution is to migrate the app to AndroidX. Notify if anyone succeeded. I concluded from this discussion: https://stackoverflow.com/questions/53268865/android-x-toolsreplace-specified-at-line-for-attribute-but-no-new-value-spec
thanks , but it is better to include library without androidx so i hope @faruktoptas to handle this issue
Hi @tarek13 sorry for late reply. It should work without converting to androidx. Can you share the error you see when you implement. Also your gradle file please(to see other dependencies etc.)?
@tarek13 you can use 1.1.5 version.
Great! Thanks a lot
@faruktoptas
We have migrated to androidX and facing the same issue for the version 1.2.1 Any idea how to fix it?
ContextCompat is under androidx.core:core:1.xx can you check that you have this package. If not try to add the dependencies below:
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
@faruktoptas
Thanks for the update. I've added but i'm getting belowerror
Duplicate class org.intellij.lang.annotations.Flow found in modules annotations-13.0.jar (org.jetbrains:annotations:13.0) and annotations-java5-15.0.jar (org.jetbrains:annotations-java5:15.0)
Do you have any idea about this?
this is error java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/content/ContextCompat;