首页 \ 问答 \ Gradle android插件,如何根据不同的产品口味复制和加载不同的动态库?(Gradle android plugin, how to copy and load different dynamic library according to different product flavors?)

Gradle android插件,如何根据不同的产品口味复制和加载不同的动态库?(Gradle android plugin, how to copy and load different dynamic library according to different product flavors?)

我有一个Android模块结构如下:

└─product module
└─src
    └─main
        ├─assets
        │  ├─flavor1
        │  └─flavor2
        ├─java
        └─jniLibs
            └─armeabi

我在module的build.gradle文件中定义了两个产品flavor,flavor1和flavor2,在src / main / assets / flavor1 /和src / main / asssets / flavor2文件夹下是完全不同的动态库,例如:libhelper.so。 它们旨在用于不同的产品风味。

我的目的是在gradle构建过程中将取决于产品风味的不同动态库复制到jniLibs / armeabi /文件夹,这是实现这一目标的一种方式吗?


I have an android module structured like below:

└─product module
└─src
    └─main
        ├─assets
        │  ├─flavor1
        │  └─flavor2
        ├─java
        └─jniLibs
            └─armeabi

I define two product flavor called flavor1 and flavor2 in module's build.gradle file, under the folder src/main/assets/flavor1/ and src/main/asssets/flavor2 are totally different dynamic library, e.g.: libhelper.so. They are intended for different product flavor.

My intention is to copy different dynamic library depending on product-flavor to jniLibs/armeabi/ folder during gradle build process, is that a way to achieve that?


原文:https://stackoverflow.com/questions/45558970
更新时间:2022-07-10 14:07

最满意答案

由于对ul应用了默认填充,因此您需要以下内容:

ul {
padding:0;
}

这是一个jsFiddle


Since there are is default padding applied to ul, you need the following:

ul {
padding:0;
}

Here's a jsFiddle of it

相关问答

更多
  • 您的“真实”字符串具有由颜色定义引起的额外长度,但这些定义未在终端中显示。 每个定义的长度为12,您有4个定义,因此12x4 = 48,48 / 2 = 24。 将最后一行更改为 sleep .2; printf "%*s\n" $(( ( ${#string} + 24 + $(tput cols) ) / 2 )) "$string" # Centers variable "string" Your "real" string has extra length caused by color defi ...
  • http://jsfiddle.net/0c5ejr82/1/尝试使用背景图片,示例代码: li{list-style:none; background: url(http://www.w3schools.com/images/compatible_ie.gif) center top no-repeat; float:left; text-align:center; padding-top:20px;} http://jsfiddle.net/0c5ejr82/1/ try using back ...
  • 希望你正在寻找这样的事情 $(window).scroll(function() { var scroll = $(window).scrollTop(); //>=, not <= if (scroll >= 300) { //clearHeader, not clearheader - caps H $("#nav_wrapper").addClass("scrolled"); } else{ $( ...
  • 相关文章

    更多
  • Gradle构建多模块项目
  • Gradle构建JAVA项目
  • Hadoop Could not load native gpl library异常解决
  • 解决Eclipse无法打开“Failed to load the JNI shared library”
  • Gradle任务详解
  • Gradle插件详解
  • Gradle构建Groovy项目
  • Gradle 快速入门教程
  • Gradle依赖管理详解
  • Unable to load configuration.
  • 最新问答

    更多
  • python的访问器方法有哪些
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。
  • 响应navi重叠h1和nav上的h1链接不起作用(Responsive navi overlaps h1 and navi links on h1 isn't working)
  • 在C中读取文件:“r”和“a +”标志的不同行为(Reading a File in C: different behavior for “r” and “a+” flags)
  • NFC提供什么样的带宽?(What Kind of Bandwidth does NFC Provide?)
  • 元素上的盒子阴影行为(box-shadow behaviour on elements)
  • Laravel检查是否存在记录(Laravel Checking If a Record Exists)
  • 设置base64图像的大小javascript - angularjs(set size of a base64 image javascript - angularjs)
  • 想学Linux 运维 深圳有哪个培训机构好一点
  • 为什么有时不需要在lambda中捕获一个常量变量?(Why is a const variable sometimes not required to be captured in a lambda?)
  • 在Framework 3.5中使用服务器标签<%=%>设置Visible属性(Set Visible property with server tag <%= %> in Framework 3.5)
  • AdoNetAppender中的log4net连接类型无效(log4net connection type invalid in AdoNetAppender)
  • 错误:发送后无法设置标题。(Error: Can't set headers after they are sent. authentication system)
  • 等待EC2实例重启(Wait for an EC2 instance to reboot)
  • 如何在红宝石中使用正则表达式?(How to do this in regex in ruby?)
  • 使用鼠标在OpenGL GLUT中绘制多边形(Draw a polygon in OpenGL GLUT with mouse)
  • 江民杀毒软件的KSysnon.sys模块是什么东西?
  • 处理器在传递到add_xpath()或add_value()时调用了什么顺序?(What order are processors called when passed into add_xpath() or add_value()?)
  • sp_updatestats是否导致SQL Server 2005中无法访问表?(Does sp_updatestats cause tables to be inaccessible in SQL Server 2005?)
  • 如何创建一个可以与持续运行的服务交互的CLI,类似于MySQL的shell?(How to create a CLI that can interact with a continuously running service, similar to MySQL's shell?)
  • AESGCM解密失败的MAC(AESGCM decryption failing with MAC)
  • SQL查询,其中字段不包含$ x(SQL Query Where Field DOES NOT Contain $x)
  • PerSession与PerCall(PerSession vs. PerCall)
  • C#:有两个构造函数的对象:如何限制哪些属性设置在一起?(C#: Object having two constructors: how to limit which properties are set together?)
  • 平衡一个精灵(Balancing a sprite)
  • n2cms Asp.net在“文件”菜单上给出错误(文件管理器)(n2cms Asp.net give error on Files menu (File Manager))
  • Zurb Foundation 4 - 嵌套网格对齐问题(Zurb Foundation 4 - Nested grid alignment issues)
  • 湖北京山哪里有修平板计算机的