简体   繁体   中英

CrashlyticsMissingDependencyException when compiling debug release on Android Studio

I'm receiving this error every time I compile the debug version of my app

03-04 12:02:48.241    8933-8933/com.cmr.activities E/Fabric﹕ 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

The problem it self is, I know the meaning of the error but I have all installed and when I had this error in the past I just cleaned the project and worked again. Now suddenly I'm receiving this error and now I can't fix it. Any idea?

I worked with Crashlytics since past year in several projects but I hate this "crash", and is worst with flavors changes configurations.

Actual configuration:

dependencies {
    classpath 'io.fabric.tools:gradle:1.15.2'
}

....
compile('com.crashlytics.sdk.android:crashlytics:2.2.1@aar') {
    transitive = true;
}

And in Application

public void onCreate() {
    ...
    Fabric.with(this, new Crashlytics());
    ...
}

And of course, Android Studio plugin installed and logged in.

Thanks!

今天知道了这一点,我通过删除代码中与之相关的所有crashlytics解决了问题,并执行了“使缓存无效/重启”,然后选择crashlytics并通过插件进行安装。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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