zoukankan      html  css  js  c++  java
  • productFlavors 差异打包问题

    差异化打包:
    1。dependencies compile 是不可以放到差异化的productFlavors里面的。
    会报错:

    Error:(69, 0) Could not find method compile() for arguments [{name=meitu-openaccount-1.0.0-release, ext=aar}] on ProductFlavor_Decorated{
    
    name=meitu, dimension=null, minSdkVersion=null, targetSdkVersion=null, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=null, versionName=null, applicationId=com.chaozh.ireadermeitu, testApplicationId=null, testInstrumentationRunner=null, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={CHANNEL_ID=com.android.builder.internal.ClassFieldImpl@af6be09a}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}, mWearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.ProductFlavor.
    
    

    所有可以在productFlavors里面配置的,就都在这里面了。

    2。资源合并的时候,如果说,你的图片只在xxh-dpi里面有,那么可能,程序跑起来,他可能不根据你差异化里面的图片去匹配。去根据主工程去匹配。

  • 相关阅读:
    结构型模式上
    创建型模式下
    创建型模式中
    创建型模式上
    设计模式总述
    Java中事件机制
    UI常用控件
    UITextField和UIViewConteoller
    UIScrollView 和 UIPageControl
    分栏视图控制器
  • 原文地址:https://www.cnblogs.com/caoxinyu/p/10568489.html
Copyright © 2011-2022 走看看