简体   繁体   English

将应用添加到Fabric控制台(使用Firebase)

[英]Add app to Fabric console (with Firebase)

I have a new android App which I successfully connected with Firebase. 我有一个新的android应用程序,已与Firebase成功连接。 I have also successfully enabled Crashlytics (via Firebase). 我还成功启用了Crashlytics(通过Firebase)。 To my surprise, I found out, that Firebase does not have Crashlytics Beta yet. 令我惊讶的是,我发现Firebase还没有Crashlytics Beta。 However, I'd like to distribute test versions of the app via Crashlytics Beta. 但是,我想通过Crashlytics Beta分发该应用程序的测试版本。

So I tried to add the App to the Fabric (not Firebase) console as well, but the Android Studio Fabric Plugin is not detecting it and it does not appear in the Fabric Console. 因此,我也尝试将应用程序也添加到Fabric(不是Firebase)控制台中,但是Android Studio Fabric插件未检测到该应用程序,因此它未出现在Fabric控制台中。

So my question is twofold: Can I somehow distribute the test app via Firebase? 所以我的问题有两个:我可以通过Firebase分发测试应用程序吗? If not, how can I add the App to the Fabric console as well? 如果没有,如何将应用程序也添加到Fabric控制台? Note, there was no prior integration of fabric, I just integrated fabric via firebase directly. 请注意,之前没有进行Fabric集成,我只是直接通过Firebase集成了Fabric。

There is a fabric plugin available in android studio. android studio中提供了一个Fabric插件。 Install that. 安装。 Once you sign in, you can choose for crashlytics and it will auto integrate your app with fabric. 登录后,您可以选择crashlytics,它将自动将您的应用程序与Fabric集成。

Then for checking crashes, you can go to fabric.io console and check it. 然后,要检查崩溃,可以转到fabric.io控制台进行检查。 check if you have done following : 检查您是否已完成以下操作:

In build.gradle 在build.gradle中

     repositories {maven { URL 'https://maven.fabric.io/public' }}
     dependencies {classpath 'io.fabric.tools:gradle:1.25.1'}
     apply plugin: 'io.fabric'

In Application class 在应用程序类中

     Fabric.with(this, new Crashlytics())

In Manifest: 在清单中:

     <meta-data
      android:name="io.fabric.ApiKey"
      android:value="your key"/>

Create app in fabric crashlytics and follow this link https://fabric.io/kits/android/crashlytics/install 在Fabric crashlytics中创建应用程序,然后点击此链接https://fabric.io/kits/android/crashlytics/install

after that crash your app. 在那之后崩溃您的应用程序。 Now you can see your app is automatically added in fabric crashlatics console 现在您可以看到您的应用程序已自动添加到Fabric crashlatics控制台中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM