AniTrend / anitrend-app

Track all your favorite Anime & Manga with AniTrend as it offers anime or manga lookup, tracking and reference powered by AniList
https://anitrend.co
MIT License
194 stars 26 forks source link

Java Compilation Error: "error: self-reference in initializer" #77

Closed jalalmostafa closed 6 years ago

jalalmostafa commented 6 years ago

I am trying to build the project so that I can debug #69 but no success. The build process fails on two compilation errors that are both "error: self-reference in initializer" in RequestHandler and WebFactory

image

Note that I am using:

I suggest constructing a build instruction page for this project. The project is getting so big and the configuration needed to successfully launch the project is not minor either.

switchswap commented 6 years ago

Try cloning from Git GUI/command line/anything but Android Studio and then:

  1. Move google-services.json from app/.travis-ci to the app/ directory
  2. Move secrets from the aforementioned folder to the root direcotry of AniTrend and rename it to secrets.properties.

There is also documentation written here: Link

wax911 commented 6 years ago

Hi @jalalmostafa the issue #69 was already fixed in one of the commits that referenced the issue (just needs more testing so the apk is in a closed beta) If you're interested in testing consider joining the discord server for anitrend (you can find the entry in Overflow Menu -> Extras -> Discord

Commit Issue fix related commit: https://github.com/AniTrend/anitrend-app/commit/64ec7f0df14ecd683ffec8ad5d4311903b65c874

jalalmostafa commented 6 years ago

@TrickRoom thanks. It solved the issue. BTW, at first, I cloned using Github for Windows.

@wax911 I would be pleased to help!