我正在创建一个使用RestAPI来获取数据的应用程序,对于该操作,我使用改造2,okhttp3和jackson将json解析为对象,我的应用程序也使用Firebase云消息传递
当我编译我的代码时,它给了我以下错误,我无法运行它
错误:任务':app:transformResourcesWithMergeJavaResForDebug'的执行失败.
com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException:在APK META-INF/maven/com.fasterxml.jackson.core/jackson-databind/pom.xml File1中复制的重复文件: /Users/silent/work/silentinfotech/DoorEye/app/libs/jackson-databind-2.7.2.jar文件2:/Users/silent/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.芯/杰克逊-数据绑定/ 2.2.2/3c8f6018eaa72d43b261181e801e6f8676c16ef6 /杰克逊-数据绑定-2.2.2.jar
我使用的是Android Studio 2.1.1和 OS X El Capitan 10.11.2
一些库添加在项目libs文件夹中
我的build.gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.silentinfotech.dooreye"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
}
}
dependencies {
compile fileTree(include: …Run Code Online (Sandbox Code Playgroud) android gradle jackson android-gradle-plugin android-studio-2.1
我正在使用Visual Studio 2012和Xamarin创建一个Android应用程序,但是当我尝试打开任何*.axml文件(包含android布局和设计以及其他元素)时,它假设显示一个所见即所得的IDE,因此我可以轻松地编辑它,但它无法加载wysiwyg并给我错误"操作无法完成.无效指针"我用gtk sharp 2.12.21,mono-android 4.6.06000,JDK 6,android-ndk-r8e-windows-x86,XamarinStudio 4.0.8我还包括图片见下文

任何人都可以告诉如何解决这个问题
我正在尝试调用自定义视觉预测分类 RestAPI 端点(https://southcentralus.dev.cognitive.microsoft.com/docs/services/Custom_Vision_Prediction_3.0/operations/5c82db60bf6a2b11a8247c15)
我正在使用美国中南部端点
我从资源管理 Azure 门户中的密钥部分获取了所需的训练和预测密钥
以下是我调用自定义视觉预测分类 RestAPI 端点时得到的响应
{
"error": {
"code": "401",
"message": "The ClassifyImage Operation under Custom_Vision_Prediction_3.0 API is not supported with the current subscription key and pricing tier Custom_Vision.Training.S0."
}
}
Run Code Online (Sandbox Code Playgroud)
我可以看到它说我当前的定价层不支持 3.0 API,但计划 S0(标准)每 1k 图像花费 0.35 美元,而我的订阅计划是即用即付
那么为什么我会收到此错误?
任何帮助表示赞赏