简体   繁体   English

如何从android项目中完全卸载Twitter的Fabric SDK?

[英]How to completely uninstall Twitter's Fabric SDK from android project?

I have integrated the Fabric SDK by Twitter to an android project of mine, and now I would like to remove it completely. 我已经将Twitter的Fabric SDK集成到我的Android项目中,现在我想完全删除它。 As I've seen so far, this SDK is fairly new, hence has little documentation and functionality beyond the most common use cases. 正如我到目前为止看到的,这个SDK是相当新的,因此除了最常见的用例之外几乎没有文档和功能。 I haven't found anything related to uninstalling it as yet. 我还没有发现任何与卸载相关的内容。

I've tried removing the fabric-related code from the build.gradle file (and of course removing the invocations in java classes), though when I build the project, a file named crashlytics-build.properties appears in the project's folder for a few seconds. 我尝试从build.gradle文件中删除与结构相关的代码(当然还删除了java类中的调用),但是当我构建项目时,名为crashlytics-build.properties的文件出现在项目的文件夹中几秒钟。 My IDE is IntelliJ. 我的IDE是IntelliJ。 I am not experienced with gradle, and know that this wouldn't be more than a superficial method anyway. 我对gradle没有经验,并且知道这无论如何都不会只是一种肤浅的方法。

So, my question is: how to uninstall fabric completely, without leaving a trace? 所以,我的问题是:如何完全卸载结构,不留痕迹?

Besides the gradle files, AndroidManifest.xml also contains Fabric related data. 除了gradle文件,AndroidManifest.xml还包含Fabric相关数据。 Make sure to delete this line from the file: 确保从文件中删除此行:

<meta-data android:name="com.crashlytics.ApiKey" android:value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>

Besides this, look for $PROJECT/android/crashlytics.properties and remove this as well. 除此之外,查找$PROJECT/android/crashlytics.properties并删除它。 This file contains the secret API key. 此文件包含秘密API密钥。

Hope this helps 希望这可以帮助

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

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