PierfrancescoSoffritti / android-youtube-player

YouTube Player library for Android and Chromecast, stable and customizable.
https://pierfrancescosoffritti.github.io/android-youtube-player/
MIT License
3.41k stars 757 forks source link

Cannot use databinding in videoId #523

Open kevschweitzer opened 4 years ago

kevschweitzer commented 4 years ago

Wanting to use databinding for setting the videoId and the following error occurs:

[kapt] An exception occurred: android.databinding.tool.util.LoggedErrorException: Found data binding errors. / data binding error msg:Cannot find the setter for attribute 'app:videoId' with parameter type java.lang.String on com.pierfrancescosoffritti.androidyoutubeplayer.core.player.views.YouTubePlayerView. file:/Users/usuario/Android/guardsavvy_android/app/src/main/res/layout/item_wellness_content.xml loc:33:27 - 33:45 \ data binding error

Seems you need add a setter so the build can use it for databinding. There are other ways so that's not crucial but it would be good to have.

PierfrancescoSoffritti commented 4 years ago

Hey, thanks for reporting the issue!