Skip to content

Compiling

Sam Crow edited this page Feb 2, 2016 · 2 revisions

Cook-E can be compiled like other Android applications, but it requires a particular version of the Android build tools.

  1. Download Android Studio.
    • If using Linux, use a download link from the table under 'All Android Studio Packages'.
  2. Install Android Studio according to the instructions that accompany the download. Select a standard installation.
    • If an 'Unable to run mksdcard SDK tool' error occurs, 32-bit compatibility libraries must be installed. On Fedora, install these packages: glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686.
  3. Once Android Studio is installed and running, open the Cook-E project by selecting the Cook-E folder.
  4. The build will fail because revision 23.0.1 of the build tools package is not installed. Install the correct build tools:
    1. Open the SDK manager with the 'SDK Manager' button in the toolbar (icon)
    2. Click on the 'Launch Standalone SDK Manager' near the bottom of the window
    3. Check the box next to Android SDK Build-tools revision 23.0.1
    4. Click on the install button and accept the license
    5. Close the SDK manager and settings windows
  5. Build the project by selecting 'Make Project' from the Build menu.

To run the application, either on an emulator or a physical device, press the Run button on the toolbar.

If an Android Virtual Device (AVD) is not already set up, you will need to create one. Google's documentation on this topic may be helpful. Cook-E will run on any device running Android 4.0 (API level 14) or later.