Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 基于构建类型的渐变模块解析_Android_Firebase_Gradle - Fatal编程技术网

Android 基于构建类型的渐变模块解析

Android 基于构建类型的渐变模块解析,android,firebase,gradle,Android,Firebase,Gradle,一般来说,我对android开发和gradle配置相当陌生,但同样也面临着这个挑战。我需要根据构建类型禁用一个特定的插件/模块(抱歉,甚至不知道该怎么称呼它) 更多的信息是,我要禁用的依赖项是firebase依赖项。我不确定这是否重要,但我也要把它加入到问题中 我们有以下类型: debug { ...code here } qa { ...code here } relea

一般来说,我对android开发和gradle配置相当陌生,但同样也面临着这个挑战。我需要根据构建类型禁用一个特定的插件/模块(抱歉,甚至不知道该怎么称呼它)

更多的信息是,我要禁用的依赖项是firebase依赖项。我不确定这是否重要,但我也要把它加入到问题中

我们有以下类型:

        debug {
           ...code here
        }
        qa {
           ...code here
        }
        release {
          ...code here
        }
        stage {
          ...code here
        }
        sft {
          ...code here
        }
        sandbox {
          ...code here
        }
dependencies {
    ... dependencies that need to be there


    // these are the main concerns
    Implementation "com.google.firebase:firebase-messaging:11.0.4"
    Implementation "com.google.firebase:firebase-analytics:11.0.4"
}
然后我们有如下依赖关系:

        debug {
           ...code here
        }
        qa {
           ...code here
        }
        release {
          ...code here
        }
        stage {
          ...code here
        }
        sft {
          ...code here
        }
        sandbox {
          ...code here
        }
dependencies {
    ... dependencies that need to be there


    // these are the main concerns
    Implementation "com.google.firebase:firebase-messaging:11.0.4"
    Implementation "com.google.firebase:firebase-analytics:11.0.4"
}
我的问题是

  • 我可以关闭这里讨论的依赖项吗
  • 如果可以,我如何有条件地只针对特定的构建类型这样做
  • 或者: 如果任何一个都不能在这里完成,如何完成

    是否可以通过禁用firebase消息传递

    resValue("bool", "FIREBASE_MESSAGE_ENABLED", "false") 
    
    我不确定在何处查找内置类型中resValue允许的值

    提前感谢您提供的所有帮助。

    debugImplementation“com.url.thing支持:version.subversion”
    用于调试构建类型

    qaplementation“com.url.thing支持:version.subversion.1”
    对于qa buildType
    等等…

    嗨,clzd0792。我试过了。我仍然会收到与com.url.thing support:version.subversion下的包相关的构建错误