更新API级别28时出现错误“ RCTView”

时间:2019-08-26 09:03:09

标签: android react-native android-gradle-plugin build.gradle

react-native: 0.57.8 react: 16.6.3 react-navigation v2

我正在尝试更新API级别以提交应用程序(它们需要最新的targetSdkVersion)。我添加了以下更改

buildToolsVersion = "28.0.3"  // from '27.0.3'
minSdkVersion = 19
compileSdkVersion = 28 // from '27'
targetSdkVersion = 28  // from '26'
supportLibVersion = "28.0.0" . // from '27.1.1'

依赖性使它保持不变

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

并将gradle version4.6更新为4.10.1

distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip

还创建了一个名为debug的文件夹,并添加了一个AndroidManifest.xml

android/app/src/debug/AndroidManifest.xml

现在该应用程序可以正常构建和运行,我什至可以查看第一页和登录页面,但是一旦反应导航的主页(选项卡)加载,它就会显示此错误

Error while updating property 'transform' of a view managed by: RCTView
null
Cannot set 'scaleX' to Float.NaN

enter image description here

有人可以帮忙吗,比克斯

0 个答案:

没有答案