找不到flutter类com.google.firebase.storage.StorageRegistrar

时间:2019-06-09 08:56:14

标签: android firebase gradle flutter

我的flutter应用程序正在运行,但是当我尝试通过在flutter项目中使用android文件夹从android studio中运行它时,显示此问题

buildTypes {
    release {
        // TODO: Add your own signing config for the release build.
        // Signing with the debug keys for now, so `flutter run --release` works.
        signingConfig signingConfigs.debug
    }
    debug {
        debuggable = true
        minifyEnabled = true
        proguardFiles 'proguard-rules.pro'
    }
}

我尝试过**

debug {
            debuggable = true
            minifyEnabled = false
            proguardFiles 'proguard-rules.pro'
        }

**但不起作用
proguard-rules.pro

 #Flutter Wrapper
    -keep class io.flutter.app.** { *; }
    -keep class io.flutter.plugin.**  { *; }
    -keep class io.flutter.util.**  { *; }
    -keep class io.flutter.view.**  { *; }
    -keep class io.flutter.**  { *; }
    -keep class io.flutter.plugins.**  { *; }


  找不到

com.google.firebase.auth.FirebaseAuthRegistrar类。       java.lang.ClassNotFoundException:com.google.firebase.auth.FirebaseAuthRegistrar           在java.lang.Class.classForName(本机方法)           在java.lang.Class.forName(Class.java:453)           在java.lang.Class.forName(Class.java:378)           在com.google.firebase.components.e.a(未知来源:23)           在com.google.firebase.components.e.a(未知来源:8)           com.google.firebase.b。(未知来源:89)           在com.google.firebase.b.a(未知来源:58)           在com.google.firebase.b.a(未知来源:37)           在com.google.firebase.provider.FirebaseInitProvider.onCreate(未知   资料来源:4)           在android.content.ContentProvider.attachInfo(ContentProvider.java:1921)           在android.content.ContentProvider.attachInfo(ContentProvider.java:1896)           在com.google.firebase.provider.FirebaseInitProvider.attachInfo(未知   资料来源:15)           在android.app.ActivityThread.installProvider(ActivityThread.java:6510)           在android.app.ActivityThread.installContentProviders(ActivityThread.java:6056)           在android.app.ActivityThread.handleBindApplication(ActivityThread.java:5977)           在android.app.ActivityThread.-wrap1(未知来源:0)           在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1739)           在android.os.Handler.dispatchMessage(Handler.java:108)           在android.os.Looper.loop(Looper.java:206)           在android.app.ActivityThread.main(ActivityThread.java:6784)           在java.lang.reflect.Method.invoke(本机方法)           在com.android.internal.os.Zygote $ MethodAndArgsCaller.run(Zygote.java:240)

 java.lang.ClassNotFoundException: com.google.firebase.analytics.connector.internal.AnalyticsConnectorRegistrar
        at java.lang.Class.classForName(Native Method)
        at java.lang.Class.forName(Class.java:453)
        at java.lang.Class.forName(Class.java:378)
        at com.google.firebase.components.e.a(Unknown Source:23)
        at com.google.firebase.components.e.a(Unknown Source:8)
        at com.google.firebase.b.<init>(Unknown Source:89)
        at com.google.firebase.b.a(Unknown Source:58)
        at com.google.firebase.b.a(Unknown Source:37)
        at com.google.firebase.provider.FirebaseInitProvider.onCreate(Unknown Source:4)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:1921)
        at android.content.ContentProvider.attachInfo(ContentProvider.java:1896)
        at com.google.firebase.provider.FirebaseInitProvider.attachInfo(Unknown Source:15)
        at android.app.ActivityThread.installProvider(ActivityThread.java:6510)
        at android.app.ActivityThread.installContentProviders(ActivityThread.java:6056)
        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5977)
        at android.app.ActivityThread.-wrap1(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1739)
        at android.os.Handler.dispatchMessage(Handler.java:108)
        at android.os.Looper.loop(Looper.java:206)
        at android.app.ActivityThread.main(ActivityThread.java:6784)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:852)



当我从flutter应用程序运行flutter项目时,但是当我打开android并选择android文件夹应用程序时崩溃了

0 个答案:

没有答案