Skip to content

5. Issues while developing

yoh-there edited this page Nov 4, 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.

Error:Android Source Generator: [CanZE] AndroidManifest.xml file not found

The solution might be (still unconfirmed), in Android Studio:

  • Tools, Android, Sync project with Gradle files
  • Build, Rebuild project

gson dependency not found

Don't do this anymore, gson jars have 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