How do I resolve the Unsupported Android Manifest Property "android:anyDensity="false"" error?

Document created by DPM Admin Employee on Jul 18, 2017
Version 1Show Document
  • View in full screen mode

In some cases when applying the MakeAppTouchTestable (MATT) utility to a project, the user will encounter the following error:

""Exception while trying to perform MakeAppTouchTestable: Unsupported Android Manifest Property "android:anyDensity="false"". Cannot proceed"

This error occurs whenever the MATT application encounters an Android Manifest or Titanium tiapp.xml whose supports-screens android: anyDensity element is set to false.

 

Use the following steps to resolve this issue in a generic Android project's AndroidManifest before re-applying the MakeAppTouchTestable command to the Android project:

    1. Locate and open the AndroidManifest.xml in an editor.
    2. SOASTA recommends changing the offending supports-screens element's android:anyDensity value (shown below) from false to true. Alternately, the element can be removed, in which case it defaults to true.
    3. Save the file before retrying the MATT command.

Note: For more information about this element, refer to Supports Screen Element. Users should also note that TouchTest supports the other attributes found in the supports-screens element, including android:resizeable and android:normalsScreens.

Use the following steps to resolve this issue in a Titanium Android project's tiapp.xml before re-applying the MakeAppTouchTestable command to the Titanium project:

    1. Launch Titanium Studop and open the tiapp.xml.
    2. SOASTA recommends changing the offending supports-screens element's android:anyDensity value (shown below) from false to true. Alternately, the element can be removed, in which case it defaults to true.
    3. Save the file before retrying the MATT command.

Attachments

    Outcomes