Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.6 KB

WINDOWS-DEV-SETUP.md

File metadata and controls

26 lines (20 loc) · 1.6 KB

Developing ODK Collect on Windows

Overview

Most ODK devs are using OS X or Linux. Occasionally problems surface for Windows users due to code changes or tool changes. Such problems commonly include file path separators and file permissions differences from Linux/OSX. However in general it is possible to develop ODK using Android Studio on Windows.

Known Issues

None currently

Current Workarounds

None currently

Configuring Android Studio for Windows

  • Change line endings to Unix. Settings > Editor > Code Style > General (tab) > Line Separator :: Unix and Mac OS (\n)
  • Configure the Terminal environment settings for Java: Settings > Tools > Terminal JAVA_HOME=C:/Program Files/Android/Android Studio/jre
  • Accept SDK licenses if necessary. Run from the Terminal in Android Studio using your own username AppData path: "C:\Users\<username>\AppData\Local\Android\Sdk\tools\bin\sdkmanager.bat" --licenses
  • To be able to run / debug tests using Android Studio, edit the JUnit configuration to use a classpath file instead of a bloated classpath string (which maxes out the tiny Windows limit for environment variables): Run > Edit Configurations... > (left pane)Templates > Android JUnit > (right pane)Shorten command line: classpath file

Configuring Git for Windows