title: Get version number for Android using Fastlane
body: <p>I'm using Fastlane to automate my iOS and Android releases for my React Native app. It works great I'm just struggling to get the current Android version number to pass into a Slack message once the app has been deployed. Below is my current Android lane:</p>
  <pre><code>lane :deploy_staging do
      gradle(task: &quot;clean&quot;)
  
      puts &quot;CONFIG: #{ENV['CONFIG']}&quot;
  
      gradle(
          task: 'bundle',
          build_type: 'Release',
          print_command: false,
      )
  
      upload_to_play_store(track: 'internal')
  
     slack(
         message: &quot;Test successfully deployed to Play Store&quot;,
         success: true,
         slack_url: &quot;https://hooks.slack.com/services/test&quot;,
         attachment_properties: {
             fields: [
                 {
                     title: &quot;Environment&quot;,
                     value: &quot;Staging&quot;,
                 }
             ]
         }
     )
  end
  </code></pre>
  <p>With iOS I run the following to get the version number:</p>
  <pre><code>  {
             title: &quot;Version number&quot;,
             value: get_version_number(target:&quot;testapp&quot;),
    }
  </code></pre>
  <p>But there doesn't seem to be this method call for Android, is there an easy way for me to pull in the version number?</p>