0

I migrated my Android project to androidX and now facing several issues with support for androidX. I was able to fix some of them with upgrading the external library to its latest version to support androidX. But I have other libraries that are not maintained for several years. For example I am using the KenBurnsView and get following error:

Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: 
public val Activity.ivStoryItem: KenBurnsView! defined in kotlinx.android.synthetic.main.fragment_story_item
public val Dialog.ivStoryItem: KenBurnsView! defined in kotlinx.android.synthetic.main.fragment_story_item
public val android.app.Fragment.ivStoryItem: KenBurnsView! defined in kotlinx.android.synthetic.main.fragment_story_item
public val android.support.v4.app.Fragment.ivStoryItem: KenBurnsView! defined in kotlinx.android.synthetic.main.fragment_story_item
public val View.ivStoryItem: KenBurnsView! defined in kotlinx.android.synthetic.main.fragment_story_item.view

I already tried to exclude the support.v4. library in the KenBurnsView but it did not help. How can I fix this error?

rm -rf
  • 968
  • 1
  • 12
  • 28

1 Answers1

0

You can try adding jetifier and androidx flags to gradle.properties file.

android.useAndroidX=true android.enableJetifier=true

Here you have the reason : https://stackoverflow.com/a/52034414/12009871

Tinchoob
  • 1
  • 1