Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

Crash on Release Run #38

Open
nafis042 opened this issue Oct 13, 2019 · 2 comments
Open

Crash on Release Run #38

nafis042 opened this issue Oct 13, 2019 · 2 comments

Comments

@nafis042
Copy link

I am getting an error when I ran flutter run --release. The error message contains the following information:
E/flutter (22170): [ERROR:flutter/shell/platform/android/platform_view_android_jni.cc(39)] java.lang.NoSuchFieldError: No static field ACCOUNT_KIT_ACTIVITY_CONFIGURATION of type Ljava/lang/String; in class Lcom/facebook/accountkit/ui/AccountKitActivity; or its superclasses (declaration of 'com.facebook.accountkit.ui.AccountKitActivity' appears in base.apk) E/flutter (22170): at com.peerwaya.flutteraccountkit.FlutterAccountKitPlugin$AccountKitDelegate.a(:12) E/flutter (22170): at com.peerwaya.flutteraccountkit.FlutterAccountKitPlugin.onMethodCall(:8) E/flutter (22170): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(:2) E/flutter (22170): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(:5) E/flutter (22170): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(:2) E/flutter (22170): at android.os.MessageQueue.nativePollOnce(Native Method) E/flutter (22170): at android.os.MessageQueue.next(MessageQueue.java:326) E/flutter (22170): at android.os.Looper.loop(Looper.java:181) E/flutter (22170): at android.app.ActivityThread.main(ActivityThread.java:6986) E/flutter (22170): at java.lang.reflect.Method.invoke(Native Method) E/flutter (22170): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493) E/flutter (22170): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445) E/flutter (22170): F/flutter (22170): [FATAL:flutter/shell/platform/android/platform_view_android_jni.cc(76)] Check failed: CheckException(env).

On debug run, it works just fine.

@nafis042
Copy link
Author

when using following configuration it causes my error

buildTypes {
    release {
        signingConfig signingConfigs.release
        minifyEnabled true
       useProguard true
       proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

after commenting last 3 lines it works

@peerwaya
Copy link
Owner

peerwaya commented Jan 2, 2020

Try on flutter 1.12

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants