如何使用在 AndroidManifest 中标记的关于声明的 shakebugs ScreenRecordingService 来防止此 android 构建消息?

How to prevent this android building message with shakebugs ScreenRecordingService tagged at AndroidManifest about a declaration?

作为构建 android 应用程序的结果,我收到一条奇怪的消息 - 至少对我来说 -:

Task :app:processDebugMainManifest ...\app\src\main\AndroidManifest.xml:39:9-43:36 Warning: service#com.shakebugs.shake.internal.shake.recording.ScreenRecordingService was tagged at AndroidManifest.xml:39 to replace another declaration but no other declaration present

shakebbugs 的声明和使用在应用程序的 java 代码中非常简单

Gradle(项目)

    repositories {
        jcenter()
        google()
        maven { url "https://jitpack.io" }
        // https://www.shakebugs.com/docs/android/setup/
        maven { url 'https://dl.bintray.com/shakebugs/shake' }
    } }

Gradle (:app)

android {
    compileSdkVersion 30
    defaultConfig {
        applicationId "com.sample.test"
        minSdkVersion 24
        targetSdkVersion 30
    }
dependencies {
    // Shake Bugs
    implementation 'com.shakebugs:shake:14.1.3'
}

AppClass.java

import com.shakebugs.shake.Shake;
public class AppClass extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Timber.d("Init Shake");
        Shake.start(this, "my-nice-api-client-id", "my-cool-api-client-secret");

    }
}

你怎么了?

感谢shakebugs.com的支持,明白了

  • 警告实际上是针对 sdk 清单的 shakebugs.com
  • 不要担心这个警告
  • 此警告将随着 shakebugs 的未来版本消失

谢谢!