code: function buildAndRun(args) {
    process.chdir(path.join(args.root, 'android'));
    const cmd = process.platform.startsWith('win') ? 'gradlew.bat' : './gradlew';
  
    // "app" is usually the default value for Android apps with only 1 app
    const {appFolder} = args;
    const packageName = fs
      .readFileSync(`${appFolder}/src/main/AndroidManifest.xml`, 'utf8')
      // $FlowFixMe
      .match(/package="(.+?)"/)[1];
  
    const packageNameWithSuffix = getPackageNameWithSuffix(
      args.appId,
      args.appIdSuffix,
      packageName,
    );
  
    const adbPath = getAdbPath();
    if (args.deviceId) {
      if (typeof args.deviceId === 'string') {
        return runOnSpecificDevice(
          args,
          cmd,
          packageNameWithSuffix,
          packageName,
          adbPath,
        );
      }
      logger.error('Argument missing for parameter --deviceId');
    } else {
      return runOnAllDevices(
        args,
        cmd,
        packageNameWithSuffix,
        packageName,
        adbPath,
      );
    }
  }
docs: Builds the app and runs it on a connected emulator / device.