react支持android5吗,react原生应用程序在真正的android设备上崩溃

我使用的是react native,目前已开始使用redux并创建了一个应用程序,但当我在模拟器上运行该应用程序时,它工作正常。然后我通过USB将我的手机连接到Android 6上,它也在工作。但是在android 8的其他设备中,它不工作,然后我将targetsdkversion更改为28,然后它也不工作,我不知道问题是什么。

下面是my package.json

{

"name": "Demo",

"version": "0.0.1",

"private": true,

"scripts": {

"start": "node node_modules/react-native/local-cli/cli.js start",

"test": "jest"

},

"dependencies": {

"react": "16.6.3",

"react-native": "^0.57.8",

"react-native-flash-message": "^0.1.10",

"react-native-linear-gradient": "^2.5.3",

"react-native-modal-datetime-picker": "^6.0.0",

"react-native-navigation": "^2.8.0",

"react-native-tab-view": "^1.3.2",

"react-native-vector-icons": "^6.2.0",

"react-redux": "^6.0.1",

"redux": "^4.0.1",

"redux-thunk": "^2.3.0"

},

"devDependencies": {

"babel-core": "^7.0.0-bridge.0",

"babel-jest": "24.0.0",

"jest": "24.0.0",

"metro-react-native-babel-preset": "0.51.1",

"react-test-renderer": "16.6.3"

},

"jest": {

"preset": "react-native"

}

}

安卓/build.gradle

buildscript {

ext {

buildToolsVersion = "28.0.3"

minSdkVersion = 19

compileSdkVersion = 28

targetSdkVersion = 28

supportLibVersion = "28.0.0"

}

repositories {

google()

mavenLocal()

mavenCentral()

jcenter()

}

dependencies {

classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong

// in the individual module build.gradle files

}

}

allprojects {

repositories {

google()

mavenCentral()

mavenLocal()

jcenter()

maven {

// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm

url "$rootDir/../node_modules/react-native/android"

}

maven { url 'https://jitpack.io' }

}

}

task wrapper(type: Wrapper) {

gradleVersion = '4.7'

distributionUrl = distributionUrl.replace("bin", "all")

}

subprojects { subproject ->

afterEvaluate {

if ((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {

android {

variantFilter { variant ->

def names = variant.flavors*.name

if (names.contains("reactNative51") || names.contains("reactNative55")) {

setIgnore(true)

}

}

}

}

}

}

我不知道问题在哪里。提前谢谢

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值