Android build - NumberFormatException in build.xml - parameters in red

10 views
Skip to first unread message

P5music

unread,
Jan 25, 2021, 4:01:45 AM1/25/21
to CodenameOne Discussions
I am trying to send the Android build of my app, after having purged my sources of methods CodenameOne does not have.

Now I have only warnings about minor issues, but is it possible that I have to fix also those in a mandatory way?

Indeed I get 3 errors with a NumberFormatException about the same parameter in the build.xml file: ${codename1.version}
Note that also other parameters are in red all over the file (they total 25).

This is the error:
build.xml:355: Can't assign value '${codename1.version}' to attribute version, reason: class java.lang.NumberFormatException with message 'For input string: "${codename1.version}"'

This is the tag:
<target name="build-for-android-device" depends="clean,copy-android-override,copy-libs,jar,clean-override">
<codeNameOne
jarFile="${dist.jar}"
displayName="${codename1.displayName}"
packageName = "${codename1.packageName}"
mainClassName = "${codename1.mainName}"
version="${codename1.version}"
icon="${codename1.icon}"
vendor="${codename1.vendor}"
subtitle="${codename1.secondaryTitle}"

targetType="android"
keystoreAlias="${codename1.android.keystoreAlias}"
keystore="${codename1.android.keystore}"
certPassword="${codename1.android.keystorePassword}"
automated="${automated}"
/>
</target>

Thanks in advance

Shai Almog

unread,
Jan 25, 2021, 9:38:28 PM1/25/21
to CodenameOne Discussions
Version is a decimal preferably with up to 2 places after the dot e.g. 1.01
There's a long historic discussion of that you can search through here.
Reply all
Reply to author
Forward
0 new messages