1.8.0_73-b02x64 Oracle Corporation, Windows 10(amd64) v10.0 (2736x1824, 4096x2304, 4096x2304)
This seems like a pretty straightforward fix.
When creating a new Android project targeting N using the template that includes a Navigation Drawer, the project generation fails with a NonNumericalException:
NonNumericalException Error executing FreeMarker template: Can't convert this string to number: "N" The blamed expression: ==> minApi?number [in template "root://activities/NavigationDrawerActivity/globals.xml.ftl" at line 11, column 65] The failing instruction: ==> ${(minApi?number lt 21)?string} [in template "root://activities/NavigationDrawerActivity/globals.xml.ftl" at line 11, column 62]
I didn't test all of the templates, but I did verify that this issue was repeatable. As the log indicates, it seems like the script is just having issues with the API target being 'N' and not something like '24'.
Description
1.8.0_73-b02x64 Oracle Corporation, Windows 10(amd64) v10.0 (2736x1824, 4096x2304, 4096x2304)
This seems like a pretty straightforward fix.
When creating a new Android project targeting N using the template that includes a Navigation Drawer, the project generation fails with a NonNumericalException:
NonNumericalException
Error executing FreeMarker template: Can't convert this string to number: "N"
The blamed expression:
==> minApi?number [in template "root://activities/NavigationDrawerActivity/globals.xml.ftl" at line 11, column 65]
The failing instruction:
==> ${(minApi?number lt 21)?string} [in template "root://activities/NavigationDrawerActivity/globals.xml.ftl" at line 11, column 62]
I didn't test all of the templates, but I did verify that this issue was repeatable. As the log indicates, it seems like the script is just having issues with the API target being 'N' and not something like '24'.