Skip to content

5. Issues while developing

chrismade edited this page Oct 26, 2015 · 17 revisions

Not finding the upstream repository

If, when issuing a pull, you can only choose your own repository and not the upstream one (fesch/CanZE), exit Studio, open a command prompt, change to the folder where the root of your project is (i.e. ~/AndroidStudioProjects/CanZE on linux) and issue the following command:

git remote add upstream https://github.com/fesch/CanZE.git

You should now have the possibility to choose upstream (fesch/CanZE) as a remote to pull from. Notice the refresh button next to the remote drop down box, you might need to click it before the upstream shows up.

Astar tablet

The popular 7" astar tablet is not playing nice with Android Studio. On a Windows PC it failed to install drivers when connected, so Studio didn't notice it being connected at all. On Ubuntu it was seen but despite it running stock Android 4.4.2., Studio reported it running API level 1, and thus refused to give it a go.

gson dependency not found (don't do this anymore, gson has been added to the project!)

In Android Studio

  • File, Project Structure (or Ctrl - Alt - Shft - S)
  • In the left bar choose under "Modules" the item "App"
  • Select the "Dependencies" tab
  • Click the Plus sign (+) on the far right and choose Library dependency
  • Search for gson, wait for it to pop up and click OK