我在build.gradle文件中使用发布部分将Android库发布到Artifactory:
publishing {
publications {
aar(MavenPublication) {
groupId packageName
version = libraryVersion
artifactId project.getName()
// Tell maven to prepare the generated "*.aar" file for publishing
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
pom.withXml {
def dependencies = asNode().appendNode('dependencies')
configurations.getByName("_releaseCompile").getResolvedConfiguration().getFirstLevelModuleDependencies().each {
def dependency = dependencies.appendNode('dependency')
dependency.appendNode('groupId', it.moduleGroup)
dependency.appendNode('artifactId', it.moduleName)
dependency.appendNode('version', it.moduleVersion)
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
它失败并出现以下错误:
Execution failed for task ':smartcardsdk:generatePomFileForAarPublication'.
> Could not apply withXml() to generated POM
> Configuration with name '_releaseCompile' not found.
Run Code Online (Sandbox Code Playgroud)
这对Android v2.x来说不是问题.我升级到Android Studio v3时出现了问题(我猜Gradle v3.0.0也是如此).
我猜测配置不再与_releaseCompile名称一起存储.
有谁知道新的"名字"应该是什么?
谢谢.
我需要构建一个可以使用简单的APDU命令与智能卡通信的Windows Phone 8应用程序.智能卡包含我的应用程序需要在手机UI上显示的数据.我们目前有Android和IOS应用程序这样做,现在需要添加Windows版本.
我花了相当多的时间玩Proximity API,并且认为API太受限制而无法满足我的需求.当我向诺基亚Lumia 620上的NFC阅读器出示一张卡时,我收到了一个DeviceArrived事件,但没有任何消息事件.我相信这是因为该卡未使用NDEF.我也有一些标签可以正常工作.
因此,似乎前进的方法是忘记邻近API并寻找可以更加本地与NFC读取器通信的库(C++),这有望允许我的应用程序使用简单的APDU命令与卡通信.
有没有人在Windows Phone 8应用程序上使用APDU与智能卡进行通信,如果有,那么使用的技术堆栈是什么?我希望使用C#托管环境(即使用设计师等创建UI)与一个库,该库可以通过NFC读卡器处理与卡通信到手机中.
任何建议将不胜感激.
我需要在 Xcode GUI 中设置以下 flutter 构建选项:
--无树摇动图标
如果没有这个,我在构建用于分发的存档时会收到错误(我想忽略它)。
我猜测 Xcode 设置中隐藏的某个地方是“flutter build ...”命令,但找不到它。
android ×1
apdu ×1
artifactory ×1
build ×1
build.gradle ×1
flutter ×1
nfc ×1
smartcard ×1
xcode ×1