最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Why does Android Studio show 0 build warnings on my machine but 25000 build warnings on my boss’s machine - Stack Overflow

programmeradmin3浏览0评论

I'm experiencing a strange discrepancy in Android Studio warning counts on the same project. On my machine, I get around 1000 build warnings, but my boss, gets around 25,000 build boss's build warnings. Both builds are correct.

There are a lot more -Winconsistent-missing-override warnings in my boss's build than mine. For example, in the below snippet of code, I wouldnt get -Winconsistent-missing-override warnings, but his is. So I thought this could be something related to "modernize-use-override", I tried adding it in clangtidy but still didn't get it.

class Base {
public:
    virtual void foo() {}
    virtual void bar() {}
};

class Derived : public Base {
public:
    void foo() {
    int a=0;
    }
    void bar() { 
    }
};

Both our setups use the same android gradle plugin 8.7.3 and Gradle 8.9 and same gradle jdk (gradle local javahome jetbrains). In Android SDK Tools, we have same Android SDK Build Tools 36-rc5, same CMake, same NDK side by side, installed. We are also using same OS and build variant. Boss's Apple clang version 13.1.6 (clang-1316.0.21.2.5) and mine is Apple clang version 14.0.3 (clang-1403.0.22.14.1)

Steps Ive taken after seeing other stack overflow answers

  1. I've ensured that all inspections (Settings->Editor->Inspections] are enabled
  2. cleaned and rebuilt the project to rule out incremental build issues.
  3. I also tried adding .gradle.warning.mode=all in gradle.properties

None of this has worked. Are the warnings getting suppressed?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论