Java 我在Signal android项目中使用volleyplus和volley库
错误:任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”的执行失败。 java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex 编译Java 我在Signal android项目中使用volleyplus和volley库,java,android,network-programming,android-volley,android-library,Java,Android,Network Programming,Android Volley,Android Library,错误:任务“:app:transformDexArchiveWithExternalLibsDexMergerForDebug”的执行失败。 java.lang.RuntimeException:com.android.builder.dexing.DexArchiveMergerException:无法合并dex 编译 android { compileSdkVersion 23 buildToolsVersion '26.0.2' defaultConfig { appli
android {
compileSdkVersion 23
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "testing.gps_service"
minSdkVersion 11
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.volley:volley:1.0.0'
compile 'dev.dworks.libs:volleyplus:+'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
testCompile 'junit:junit:4.12'
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
}
repositories
{
mavenCentral()
google()
}
apply plugin: 'kotlin-android-extensions'
-------------------------------------------------------
## I'm new to Android, currently working on FYP, as I run my project, an
error is occurred.##
希望这将有助于使用此链接上载图像“”我正在尝试您建议的解决方案,但它不起作用:(有可能在单个项目中使用两个库com.android.volley:volley:1.0.0和dev.dworks.libs:volleyplus吗?哦,对不起,可能在回答中尝试了另一种建议的方法!我尝试了这个方法也不起作用,错误仍然相同。有可能在单个项目中使用两个库com.android.volley:volley:1.0.0和dev.dworks.libs:volleyplus吗项目?首先,你为什么要同时导入这两个项目?事实上,我是一名学生,刚接触Android。我之前在Volley 1.0.0上工作过,然后我需要将图像发送到服务器,所以我在Volleyplus中看到了发送图像(多部分数据)的解决方案,所以我使用了Volleyplus。你可能希望更好地说明这有助于解决特定问题。
compile 'dev.dworks.libs:volleyplus:0.1.4'