如果我只有一个带有几个项目的 LinearLayout,那么用 ConstraintLayout 替换它会有什么效果
<LinearLayout>
<TextView>
<TextView>
<TextView>
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
对比
<ConstraintLayout>
<TextView>
<TextView>
<TextView>
</ConstraintLayout>
Run Code Online (Sandbox Code Playgroud)
它们的效率有什么不同吗?
我已成功设置了facebook-messenger webhook.直到昨天我也能够发送和接收消息.但今天,当我从用户发送一条消息时,我在服务器webhook POST API上收到多个调用.他们似乎永远不会停止.
[2013-11-13 18:39:09 - XlApp] Dx
trouble writing output: Too many method references: 66024; max is 65536.
You may try using --multi-dex option.
References by package:
13 java.lang
1 java.lang.reflect
5 java.util
1 javax.xml.namespace
66 org.apache.xmlbeans
19 org.apache.xmlbeans.impl.values
1 org.apache.xmlbeans.impl.xb.xmlschema
2500 org.openxmlformats.schemas.drawingml.x2006.chart
1430 org.openxmlformats.schemas.drawingml.x2006.chart.impl
8767 org.openxmlformats.schemas.drawingml.x2006.main
5258 org.openxmlformats.schemas.drawingml.x2006.main.impl
86 org.openxmlformats.schemas.drawingml.x2006.picture
33 org.openxmlformats.schemas.drawingml.x2006.picture.impl
745 org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing
417 org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.impl
230 org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing
164 org.openxmlformats.schemas.drawingml.x2006.wordprocessingDrawing.impl
298 org.openxmlformats.schemas.officeDocument.x2006.customProperties
256 org.openxmlformats.schemas.officeDocument.x2006.customProperties.impl
617 org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes
596 org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.impl
285 org.openxmlformats.schemas.officeDocument.x2006.extendedProperties
196 org.openxmlformats.schemas.officeDocument.x2006.extendedProperties.impl
23 org.openxmlformats.schemas.officeDocument.x2006.math
24 org.openxmlformats.schemas.officeDocument.x2006.relationships
2 org.openxmlformats.schemas.officeDocument.x2006.relationships.impl
2076 org.openxmlformats.schemas.presentationml.x2006.main
1224 …Run Code Online (Sandbox Code Playgroud) 是否可以将通过 Android 应用程序包生成的多个 apk 合并到一个可安装/可分发的 apk 中?
我尝试通过 adb install-multiple 安装,但以这种方式,它是不可分发的。
如果我正在创建一个包(P1),它依赖于其他应用程序(A1)使用的其他包(p2和p3)。如何阻止应用程序(A1)访问传递依赖项(p2 和 p3)?
A
|
|
P1
/\
/ \
p2 p3
Run Code Online (Sandbox Code Playgroud)
在 android(gradle) 中,我们可以通过使用implementation和来选择性地公开依赖包api。
在 p1 的 build.gradle 中
implementation p2
api p3
Run Code Online (Sandbox Code Playgroud)
在A1的build.gradle中
implementation p1
Run Code Online (Sandbox Code Playgroud)
这将使 p3 可在 A1 中使用,但 p2 将不可用。
有没有办法控制 dart 中的传递依赖?