Traktoid
Traktoid copied to clipboard
Gradle build problems
Hi, I am trying to use the wonderful product you made and was getting an issue such as gradle configuration 'default' not found. Can you please help?
I know it's a bit late, but it anyone is having similar issues, this is how you fix it:
Edit the build.gradle
and change compile project(':trakt-java-git')
to compile 'com.uwetrottmann:trakt-java:4.3.0'
.
That's the version this project was using before development stopped so easiest to use. You could try using the latest version (5.0.0) but likely a lot of changes would need to be made.
@SlashmanX Your answer finally solved few hours of work.
I just have few more questions.
trakt_client_id, trakt_client_secret and trakt_redirect_uri
is something I would get from trakt api?
Also TraktoidProvider.AUTHORITY does not exist. Where would we go to create that?
the file is in com.florianmski.tracktoid.data.provider;
Also it extend GeneratedProvider which doesnt seem to be valid.
Thank you in advance.
Hi @rahmanmofizur,
- This info is from trakt, go to https://trakt.tv/oauth/applications and create a new application and it should give you
trakt_client_id
andtrakt_client_secret
. -
trakt_redirect_uri
is something you input yourself but it has to match both on the Trakt website and in your application (My application is called CastHub so I just set it tocasthub://trakt_redirect
) - I think you can just rename the
TraktoidProviderOld
and use that but not sure.
I ended up just updating to the 5.0 library and fixing the errors I found.
I will come back later and provide steps to get the project compiling with the updated libraries (5.0), there was a lot of find+replace involved, but it's not too much hassle I just don't have the code on hand right now.
@SlashmanX Thank you so much for your answer. Its really helpful and solved an issue.