Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React native 将TargetedSDK版本26更新为28后,React本机应用程序不工作_React Native_React Native Android - Fatal编程技术网

React native 将TargetedSDK版本26更新为28后,React本机应用程序不工作

React native 将TargetedSDK版本26更新为28后,React本机应用程序不工作,react-native,react-native-android,React Native,React Native Android,在playstore中上载时出错: 您的应用程序当前以API级别26为目标,并且必须至少以API级别28为目标,以确保它基于针对安全性和性能优化的最新API构建。将应用程序的目标API级别更改为至少28 应用程序与TargetedSDK版本26配合使用效果良好。但更改为28后,应用程序构建成功,但依赖关系图未加载 buildscript { ext { buildToolsVersion = "28.0.3" minSdkVersion

在playstore中上载时出错:

您的应用程序当前以API级别26为目标,并且必须至少以API级别28为目标,以确保它基于针对安全性和性能优化的最新API构建。将应用程序的目标API级别更改为至少28

应用程序与TargetedSDK版本26配合使用效果良好。但更改为28后,应用程序构建成功,但依赖关系图未加载

buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
    }
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
    }
}