Google Api 错误:无效请求 - 调用者没有权限 Fastlane React Native

Ram*_*ler 7 deployment android google-play-services react-native fastlane

default_platform(:android)

def getVersionCode
  thirtySeptemberTwentyTwenty = 1601480940 / 60
  legacyVersionCode = 10902
  versionCode = legacyVersionCode + (Time.now.to_i / 60) - thirtySeptemberTwentyTwenty

  if versionCode > 2100000000
    raise "versionCode cannot be higher than 2100000000"
  end

  versionCode.floor()
end

platform :android do
    desc "Increments internal build number tracking (different than version)"
    lane :bump_build_number do
      android_set_version_code(
        version_code: getVersionCode()
      )
  end

  desc "Build and uploads the app to playstore for a internal testing release"
  lane :playstoreInternal do 
        # Retrieve version of my app in package.json (React Native case)
    package = load_json(json_path: "../package.json")

        # Clean build folder
    gradle(
      task: "clean"
    )

        # Bump android.defaultConfig.versionCode
    bump_build_number

        # Do the bundle of the application
    gradle(
      task: 'bundle',
      build_type: 'Release',
    )

    upload_to_play_store(
      track: 'internal',
      release_status: 'draft',
      skip_upload_apk: true,
      version_name: package["version"]
    )
  end
  
end
Run Code Online (Sandbox Code Playgroud)

使用它在商店上部署应用程序,但从谷歌收到错误。我已多次检查谷歌权限,但不明白为什么会出现。请检查一下

错误:[!] Google Api 错误:无效请求 - 调用者没有权限