# 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

from HeaderItem(id, string, null) to HeaderItem(id, string).

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
your blog posts. After all I’ll be subscribing to your rss feed and
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!
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.34502315521240234, "perplexity": 6939.302276193055}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.3, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2017-04/segments/1484560280872.69/warc/CC-MAIN-20170116095120-00158-ip-10-171-10-70.ec2.internal.warc.gz"}