【问题标题】:I m Using volleyplus and volley libraries in Signal android project我在 Signal android 项目中使用 volleyplus 和 volley 库
【发布时间】:2017-11-11 14:19:15
【问题描述】:
 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.##

错误:任务 ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' 执行失败。 java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: 无法合并 dex

【问题讨论】:

  • 我正在尝试您建议的解决方案,但没有成功:(
  • 是否可以在单个项目中使用两个库 com.android.volley:volley:1.0.0 和 dev.dworks.libs:volleyplus?
  • 哦,对不起,可能会在答案中尝试其他建议的方式!

标签: java android network-programming android-volley android-library


【解决方案1】:

编译

compile 'dev.dworks.libs:volleyplus:0.1.4'

希望对你有帮助

【讨论】:

  • 我试过这个也没用,错误依旧。
  • 是否可以在单个项目中使用两个库 com.android.volley:volley:1.0.0 和 dev.dworks.libs:volleyplus?
  • 首先你为什么要同时导入它们?
  • 其实我是一名学生,刚接触Android。我之前在 Volley 1.0.0 上工作,然后我需要将图像发送到服务器,所以我看到了在 Volleyplus 中发送图像(多部分数据)的解决方案,所以我使用了 Volleyplus。
【解决方案2】:

【讨论】:

  • 您可能希望更好地说明这如何帮助解决特定问题。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2013-09-02
  • 1970-01-01
  • 2013-05-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多