no suitable constructor found for HeaderItem(int,String,)

I got following error when I try to build android TV sample application.

D:\workspace\androidstudio\AndroidTVsample\app\src\main\java\com\corochann\androidtvsample\MainFragment.java
Error:(109, 33) error: no suitable constructor found for HeaderItem(int,String,<null>)
constructor HeaderItem.HeaderItem(long,String) is not applicable
(actual and formal argument lists differ in length)
constructor HeaderItem.HeaderItem(String) is not applicable
(actual and formal argument lists differ in length)
Error:(113, 33) error: no suitable constructor found for HeaderItem(int,String,<null>)
constructor HeaderItem.HeaderItem(long,String) is not applicable
(actual and formal argument lists differ in length)
constructor HeaderItem.HeaderItem(String) is not applicable
(actual and formal argument lists differ in length)
D:\workspace\androidstudio\AndroidTVsample\app\src\main\java\com\corochann\androidtvsample\PlaybackOverlayFragment.java
Error:(316, 29) error: no suitable constructor found for HeaderItem(int,String,<null>)
constructor HeaderItem.HeaderItem(long,String) is not applicable
(actual and formal argument lists differ in length)
constructor HeaderItem.HeaderItem(String) is not applicable
(actual and formal argument lists differ in length)
D:\workspace\androidstudio\AndroidTVsample\app\src\main\java\com\corochann\androidtvsample\VideoDetailsFragment.java
Error:(156, 33) error: no suitable constructor found for HeaderItem(int,String,<null>)
constructor HeaderItem.HeaderItem(long,String) is not applicable
(actual and formal argument lists differ in length)
constructor HeaderItem.HeaderItem(String) is not applicable
(actual and formal argument lists differ in length)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Error:Execution failed for task ':app:compileDebugJava'.
> Compilation failed; see the compiler error output for details.

The reason of this error happens is because the definition of the constructor HeaderItem.HeaderItem(long,String) has changed. We need to change

So we need to delete “null” argument for all occurrences in the function.

7 responses

1. Please let me know if you’re looking for a article writer
for your weblog. You have some really good articles and
I believe I would be a good asset. If you ever want to take some
of the load off, I’d love to write some material
Please blast me an email if interested. Thank you!

2. http://gckis.nowogrodziec.pl/index.php/kalendarz-imprez-2015?start=0&/contact.php&cache=yes says:

I am extremely impressed with your writing skills as well as with the layout on your blog.
Is this a paid theme or did you customize it yourself?

Either way keep up the excellent quality writing,
it’s rare to see a nice blog like this one nowadays.

3. wp1018907.server-he.de says:

Pretty nice post. I just stumbled upon your weblog and
wished to say that I have truly enjoyed browsing
I hope you write again very soon!

4. Hello very nice website!! Guy .. Excellent .. Amazing .. I’ll bookmark
your website and take the feeds also? I’m happy to seek
out a lot of helpful info right here within the put up,
we want develop extra techniques on this regard, thank you for sharing.
. . . . .

5. I’m extremely pleased to discover this web site. I need to
to thank you for ones time due to this fantastic read!!
I definitely enjoyed every part of it and I have you saved to
fav to see new information in your web site.

6. minecraft games says:

Spot on with this write-up, I seriously believe that this site needs a lot more attention. I’ll probably
be back again to read through more, thanks for the info!