小编Ugu*_*gur的帖子

React-native 升级相关类型错误

我升级了 react-native

"react": "16.9.0",
"react-native": "0.61.4",
Run Code Online (Sandbox Code Playgroud)

"react": "16.11.0",
"react-native": "0.62.2",
Run Code Online (Sandbox Code Playgroud)

我做了一切都反应原生升级帮助文件

https://react-native-community.github.io/upgrade-helper/?from=0.61.4&to=0.62.2

但我遇到了这些错误

"associated type descriptor for Swift.ExpressibleByFloatLiteral.FloatLiteralType", referenced from:

"associated type descriptor for Swift.ExpressibleByIntegerLiteral.IntegerLiteralType", referenced from:

"value witness table for Builtin.Int32", referenced from:
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

xcode ios swift react-native

7
推荐指数
1
解决办法
1966
查看次数

找不到 io.fabric.tools:gradle:1.28.1

我想在我的项目中安装 Firebase Crashlytics 但我在构建时遇到了这样的问题

尝试过 - 我可以做评论 //apply plugin: "io.fabric" - 我将版本类路径删除'io.fabric.tools:gradle:1.28.1'classpath 'io.fabric.tools:gradle:1.28.0'

android/build.gradle

        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'io.fabric.tools:gradle:1.28.1'
Run Code Online (Sandbox Code Playgroud)
  maven {
            url 'https://maven.fabric.io/public'
        }
Run Code Online (Sandbox Code Playgroud)

gradle-wrapper.properties

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

Run Code Online (Sandbox Code Playgroud)

proguard-rules.pro

-keep class io.invertase.firebase.** { *; }
-dontwarn io.invertase.firebase.**

Run Code Online (Sandbox Code Playgroud)

应用程序/build.gradle

    // Firebase dependencies
    implementation "com.google.android.gms:play-services-base:16.1.0"
    implementation "com.google.firebase:firebase-core:16.0.9"
    implementation('com.crashlytics.sdk.android:crashlytics:2.9.9@aar') {
        transitive = true
    }


apply plugin: "io.fabric"
Run Code Online (Sandbox Code Playgroud)

问题

> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find io.fabric.tools:gradle:1.28.1.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.pom
       - https://dl.google.com/dl/android/maven2/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.jar
       - https://jcenter.bintray.com/io/fabric/tools/gradle/1.28.1/gradle-1.28.1.pom …
Run Code Online (Sandbox Code Playgroud)

android firebase crashlytics react-native react-native-android

4
推荐指数
2
解决办法
5998
查看次数

我无法在模拟器上登录沙箱用户 - 不正确的通行证/用户

我为付费测试创建了一个新的沙箱用户。到目前为止,我验证了电子邮件没有问题。之后,我尝试在 IOS(11) 模拟器(IPhoneX) 上登录但出现错误:

“用户名或密码错误”

我确定电子邮件和密码正确。

xcode ios

4
推荐指数
1
解决办法
333
查看次数

在反应原生中找不到框架 UserMessagingPlatform.xcframework

我在 xcode 中遇到错误后更新了我的 React Native 项目

安卓没有问题

错误: 在此处输入图片说明

我的新 package.json

"@react-native-firebase/admob": "^7.6.10",
"@react-native-firebase/analytics": "^7.6.9",
"@react-native-firebase/app": "^8.4.7",
"@react-native-firebase/auth": "^9.3.2",
"@react-native-firebase/crashlytics": "^8.4.12",
"@react-native-firebase/firestore": "^7.9.1",
"@react-native-firebase/messaging": "^7.9.2",
"@react-navigation/native": "^5.8.2",
"@react-navigation/stack": "^5.11.1",
"dayjs": "^1.9.4",
"i18n-js": "^3.8.0",
"libphonenumber-js": "^1.8.5",
"lodash.memoize": "^4.1.2",
"react": "17.0.1",
"react-native": "0.63.3",
Run Code Online (Sandbox Code Playgroud)

我之前的 package.json

"@react-native-firebase/admob": "^7.6.9",
"@react-native-firebase/analytics": "^7.6.8",
"@react-native-firebase/app": "^8.4.6",
"@react-native-firebase/auth": "^9.3.1",
"@react-native-firebase/crashlytics": "^8.4.10",
"@react-native-firebase/firestore": "^7.8.7",
"@react-native-firebase/messaging": "^7.9.1",
"@react-navigation/native": "^5.7.6",
"@react-navigation/stack": "^5.9.3",
"dayjs": "^1.9.3",
"i18n-js": "^3.8.0",
"libphonenumber-js": "^1.8.4",
"lodash.memoize": "^4.1.2",
"react": "16.14.0",
"react-native": "0.63.3",
Run Code Online (Sandbox Code Playgroud)

javascript mobile xcode ios react-native

4
推荐指数
1
解决办法
2376
查看次数