Traktoid icon indicating copy to clipboard operation
Traktoid copied to clipboard

Gradle build problems

Open Kaushalop opened this issue 9 years ago • 4 comments

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?

Kaushalop avatar Oct 01 '15 04:10 Kaushalop

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 avatar Jun 14 '16 19:06 SlashmanX

@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.

moficodes avatar Oct 05 '16 20:10 moficodes

Hi @rahmanmofizur,

  1. 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 and trakt_client_secret.
  2. 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 to casthub://trakt_redirect)
  3. 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 avatar Oct 06 '16 09:10 SlashmanX

@SlashmanX Thank you so much for your answer. Its really helpful and solved an issue.

Grishu avatar May 06 '17 10:05 Grishu