tslamic/premiumer

error "Cannot resolve symbol'with'"

Closed this issue · 1 comments

Hi
Thanks for v2, and that's really gr8 work.

Here is my issue.
When I create the instance:
Premiumer mPremiumer = new PremiumerBuilder.with(context) .sku(SKU) .listener(this) .build();
It shows that I have a problem with ".with(context)"
The error is:
Cannot resolve symbol'with'

any help with this?

thanks

Hi,

just remove new keyword as PremiumerBuilder.with(Context) is a static factory method:

Premiumer premiumer = PremiumerBuilder.with(context).sku(SKU).listener(this).build();