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
最满意答案
Since there are is default padding applied to
ul
, you need the following:ul { padding:0; }
相关问答
更多-
导航栏中的中心徽标(Centered logo in navigation bar)[2022-04-12]
好吧,为了让你的导航在页面的中心,你需要在div中输入导航 ,所以我添加了类 .rope和你的样式.rope { display: flex; justify-content: center;} { display: flex; justify-content: center;}如下面的代码: /*Css Navigation code*/ .rope { display: flex; justify-content: center; } .unity-code-logo { b ... -
由于对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
-
如果你想让页脚文本居中,你可以试试这个 div#footer-name { background-color: aqua; display: block; margin-left: auto; margin-right: auto; text-align: center; // added this line } if u want the footer text to be centered u can try this div#footer-name { ...
-
span是内联标记添加显示:阻止到css http://tinkerbin.com/oBgV5mcU span is an inline tag add display:block to css http://tinkerbin.com/oBgV5mcU
-
演示: http : //jsfiddle.net/6qcrevxe/ header { background: #333; width: 100%; } .global-nav { font-size: 13px; text-align: center; list-style-type: none; background-color: #205081; line-height: 40px; border-bottom: 1px solid # ...
-
使用更多div!
-
使用bootstrap的hidden-xs助手类 :Use bootstrap's hidden-xs helper class:
-
为什么这个文字没有居中?(Why is this text not centered?)[2021-08-31]
您的“真实”字符串具有由颜色定义引起的额外长度,但这些定义未在终端中显示。 每个定义的长度为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 ...
-
在scrolldown上添加过渡到居中的导航栏图标/徽标/图像(Add transition to centered navbar icon/logo/image on scrolldown)[2023-05-28]
希望你正在寻找这样的事情 $(window).scroll(function() { var scroll = $(window).scrollTop(); //>=, not <= if (scroll >= 300) { //clearHeader, not clearheader - caps H $("#nav_wrapper").addClass("scrolled"); } else{ $( ...