如何通过 google api 'your app currently targets API level 28' 解决 fastlane 构建错误

How to resolve the fastlane build error by google api 'your app currently targets API level 28'

我正在使用 fastlane 构建我的 android 应用程序(使用 react native 编写)。我对应用程序世界还很陌生。如果相关,我有一个 Fastlane 和一个 GoogleService-Info.plist 文件。我在网上看到有人提到这个问题,但没有看到实际的解决方案?!

Google Api Error: forbidden: Your app currently targets API level 28 and must target at least API level 29. - Your app currently targets API level 28 and must target at least API level 29.

我看过这个 但作为一个应用程序新手,我不确定它与我的 bitrise/fastlane 世界有什么关系。

我已经搜索了我的 package.json 文件,但没有提及 google/ google api 所以正确(或错误)我假设需要进行必要的更改在代码之外,因此可能在我上面提到的 fastlane/ google 文件中。

谢谢,

我想我有答案了!万岁

我还有一个 build.gradle 文件,它引用了当前设置为 28 的目标 sdk 版本,将其更改为 29,如下所示 -

import groovy.json.JsonSlurper
buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 29
        supportLibVersion = "28.0.0"
    }

这应该可以解决问题