Error "Could not compile resources"

Last edited on

General

Can occur during 'instrument and deploy' of the Android application. This is either visible in the Error trace the IDE shows or the library log of the support information. Is in most cases related to the aapt/appt2 tool provided by the Android SDK bailing out on invalid resource names containing the "$" character.

Solution

  1. Rename the following files:

    <SQUISHDIR>/bin/aapt to aapt-disabled

    <SQUISHDIR>/bin/aapt2 to aapt2-disabled

  2. Download the aapt_64 binary for your operating system from this Git repository

  3. Copy or move the binary to <SQUISHDIR>\bin and rename it to aapt