got errors, calling p.token instead of p.getToken(), fixed now and gradle builds correctly yay!