Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Data Persistence with Room Working with Room Saving a Test Pizza

Devanshu Kaushik
Devanshu Kaushik
18,946 Points

Getting a compilation error related to kapt : 'java.lang.IllegalArgumentException: intcannot be converted to an Element'

Getting the above compilation error during build time, related to 'MoreTypes', no trace to follow so I am a bit stuck here.

Ben Deitch
Ben Deitch
Treehouse Teacher

Hey Devanshu! I'd guess the issue is in one of the DAOs, but it's hard to say for sure. If your project's on GitHub, I can take a look and see if I get the same error.

1 Answer

Devanshu Kaushik
Devanshu Kaushik
18,946 Points

Hi Ben! Thanks for the quick revert. Finally figured out the problem - I had added a rouge addTopping method on my own in the PizzaTopping dao which took in pizzaId and toppingId as arguments - and that was the source of the compilation error.