I'am building an android app which uses fabric-crashlytics for logging all the crashes in devices. This particular line of code:
Crashlytics crashlyticsKit = new Crashlytics.Builder()
.core(new CrashlyticsCore.Builder().disabled(false).build())
.build();
Fabric.with(this, crashlyticsKit);
is crashing with Bazel, but, when I set this value to "true"..(i.e., I'am disabling Crashlytics ), this application's Bazel build is working fine. But, If I'am building a normal android app it's not crashing weather the value is "true" or "false". But, in Bazel the build is completely crashing on start. The error is:
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: .
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . | |
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . | |
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . | |
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . \ | | /
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . \ /
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . \ /
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . \/
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: .
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up,
install an Android build tool and ask a team member to invite you to this app's organization.
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: .
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . /\
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . / \
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . / \
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . / | | \
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . | |
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: . | |
2019-01-11 15:55:55.808 19850-19850/com.sensennetworks.senanpr E/CrashlyticsCore: .
2019-01-11 15:55:55.812 19850-19850/com.sensennetworks.senanpr E/AndroidRuntime: FATAL EXCEPTION: main
How do I properly integrate fabric and crashlytics for them to work in Bazel?
My dependencies in BUILD file are:
deps = [
":tensorflow_native_libs",
"//tensorflow/contrib/lite/java:tensorflowlite",
"@com_google_code_gson_gson//jar",
"@com_mcxiaoke_volley_library//jar",
#"@com_sun_mail_android_activation//jar",
#"@com_sun_mail_android_mail//jar",
gmaven_artifact("com.google.android.gms:play-services-location:aar:15.0.1"),
gmaven_artifact("com.android.support:appcompat-v7:aar:26.1.0"),
gmaven_artifact("com.android.support:design:aar:26.1.0"),
gmaven_artifact("com.android.support:recyclerview-v7:aar:26.1.0"),
gmaven_artifact("com.android.support:support-v4:aar:26.1.0"),
gmaven_artifact("io.fabric.sdk.android:fabric:aar:1.3.17"),
gmaven_artifact("com.crashlytics.sdk.android:crashlytics:aar:2.9.0"),
#gmaven_artifact("com.crashlytics.sdk.android:crashlytics-core:aar:2.6.4"),
gmaven_artifact("com.google.firebase:firebase-core:aar:15.0.2")]