Skip to content

Setup Android Studio and clone source code

kathbee edited this page Mar 6, 2018 · 3 revisions
  1. Install Android studio
  2. In Android studio, clone source code from GitHub repository.
    • you will need a GitHub account to clone this source code.
    • within Android studio, File -> New -> Project from Version Control -> GitHub
    • you should then see this dialog clone dialog
  3. You may wish to rename folders within the cloned source code to suit your own preferences.
    • first, make sure your project view is in Android view
    • Click on the gear wheel of this the project view tab and uncheck [whatever that thing was]
    • within the java -> com folder of the project hierarchy, right click on folders you wish to rename and navigate to Refactor -> Rename.
    • A dialog should pop up that allows you to rename elements of the hierarchy.
  4. At this point, you may have encountered this error: Gradle 'WurmPaint' project refresh failed.
    • you should see further text describing the error in the Messages portion of the interface, with a blue link to "Install missing platform(s) and sync project". Click this link and the missing platform will install and the error should disappear. You may have to do this several times to install several additional packages and platforms, but eventually the project should sync.
  5. WurmPaint may try to automatically build, at which point you will get this error: File google-services.json is missing. The Google Services Plugin cannot function without it. In the next section we will setup the Firebase database to connect to the app and obtain the google-services.json file.
Clone this wiki locally