Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19315] Android: CLI - android.dx.maxMemory not working - typo issue at _build.js

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2020-01-30T10:50:08.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, CLI
Labelsn/a
ReporterManojkumar Murugesan
AssigneePraveen Innamuri
Created2015-07-13T13:38:25.000+0000
Updated2020-01-31T10:29:58.000+0000

Description

Setting *android.javac.maxMemory* and *android.dx.maxMemory* properties in tiapp.xml never works. +Test Case:+
  <property name="android.javac.maxMemory" type="string">1024M</property>
  <property name="android.dx.maxMemory" type="string">2048M</property>
+Expected Behaviour+ Should accept the values from tiapp.xml +Actual Behaviour+ it always takes *256M / 1024M* which is default. The below one works.
  <property name="android.javac.maxmemory" type="string">1024M</property>
  <property name="android.dx.maxmemory" type="string">2048M</property>
Typo issue at https://github.com/appcelerator/titanium_mobile/blob/afcd78293e0f9835c1d244b9dace47e2afb692a4/android/cli/commands/_build.js#L927

Comments

  1. Caio Iglesias 2017-01-10

    This is not a bug. The property names that should be used on tiapp.xml are properly documented: http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_CLI_Options-section-src-37549003_TitaniumCLIOptions-android.javac.maxmemory and http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_CLI_Options-section-src-37549003_TitaniumCLIOptions-android.dx.maxmemory
  2. Chris Barber 2020-01-30

    As stated in the docs, the property must be named "android.javac.maxmemory".
  3. Sohail Saddique 2020-01-31

    As stated above, this ticket is invalid. Closing.

JSON Source