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 trialLouis Sankey
22,595 PointsError "type 'javax.security.auth.callback.Callback' does not have type parameters
I set up up the activeListing method with the callback included like so ... Callback<ActiveListings> callback ... but under <ActiveListings> I am getting the error "type 'javax.security.auth.callback.Callback' does not have type parameters". Did I import callback from the wrong package? I tried importing the one from com.squareup.picasso, but it gives me the same error about it not having type parameters. Any help would be appreciated, thanks
2 Answers
James Simshaw
28,738 PointsHello,
The callback you want to be importing is
import retrofit.Callback;
Please let us know if this helps or if you need more assistance so we can help you further.
Salomon Alcoba Trujillo
Courses Plus Student 110 Pointsthis is my code:
import retrofit.Callback; import retrofit.http.GET; import retrofit.http.Query;
/**
- Created by hp salo on 27/10/2015. */ public interface Api { @GET("/listings/active") void activeListing(@Query("includes") String includes, Callback<com.etsy.android.samples.sharesy.model.ActiveListings> callback); }
i have the error etsy in read, and i cant only put "ActiveListings" PLEASE HELP
Adnan Nazir
Courses Plus Student 607 PointsAdnan Nazir
Courses Plus Student 607 PointsNo it is not helping me i have the same problem too