方法java.io.File#<init>的方法重载不明确。在React Native中

时间:2019-07-02 21:22:44

标签: java android reactjs firebase react-native

当我尝试使用命令react-native run-android时,我看到此错误:

Ambiguous method overloading for method java.io.File#<init>.
  Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
        [class java.lang.String, class java.lang.String]
        [class java.io.File, class java.lang.String]

我正在使用此命令yard link,这是我的settings.gradle:

rootProject.name = 'ReactNativeTest'

include ':@react-native-firebase_firestore'
project(':@react-native-firebase_firestore').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/firestore/android')

include ':@react-native-firebase_app'
project(':@react-native-firebase_app').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/app/android')

include ':@react-native-firebase_auth'
project(':@react-native-firebase_auth').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-firebase/auth/android')


include ':app'

清洁应用程序正在运行,但我想使用Firebase。

0 个答案:

没有答案