似乎微不足道,但我无法使其正常工作:我将编码为JSON对象的数据发送到调用Firehose的API Gateway。S3中的结果文件在一行中包含所有JSON对象。我读过应该可以添加换行符,但是无论我尝试什么,都可能有错误或者根本不执行任何操作。映射模板如下所示
{
"DeliveryStreamName": "file-datadump",
"Record": {
"Data": "$util.base64Encode($input.json('$'))"
}
}
Run Code Online (Sandbox Code Playgroud)
有什么想法怎么办?
为什么我在此代码中收到错误“Type '() -> ()' 无法符合 'ShapeStyle'”?它在其他地方也有效。
RoundedRectangle(cornerRadius: globals.cornerRadius).fill(Color.gray).overlay{
Spacer()
Text("Some text")
.font(Font.custom("OpenSans-Regular", size: 17))
.foregroundColor(.white)
.multilineTextAlignment(.leading)
}.frame(width: .infinity, height: 100)
Run Code Online (Sandbox Code Playgroud) 刚刚开始我的第一个 Jetpack 项目。我想使用 HorizontalPager ( https://developer.android.com/reference/kotlin/androidx/compose/foundation/pager/package ),但出现未解决的引用错误。我看到这被标记为实验性的,但使用 opt in 指令没有帮助。有线索吗?
谢谢!