调试忽略依赖关系,因为它可能与 android 提供的内部版本冲突

Dependency is ignored for debug as it may be conflicting with internal version provided by android

我在尝试 运行 我的应用程序时不断收到以下错误。我正在尝试连接 java-twilio jar 以使用我的应用程序。我试图到处寻找修复程序,但无济于事。任何帮助都将非常感谢

Information:Gradle tasks [:app:assembleDebug] Warning:Dependency org.apache.httpcomponents:httpclient:4.1.2 is ignored for debug as it may be conflicting with the internal version provided by Android. In case of problem, please repackage it with jarjar to change the class packages Warning:Dependency org.apache.httpcomponents:httpclient:4.1.2 is ignored for release as it may be conflicting with the internal version provided by Android. In case of problem, please repackage it with jarjar to change the class packages

dependencies {
    //compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.gms:play-services-base:6.5.87'
    compile 'com.android.support:appcompat-v7:22.0.0'
    compile 'com.android.support:support-v4:22.0.0'
    compile 'com.google.code.gson:gson:2.3'
    compile 'com.google.guava:guava:18.0'
    compile 'com.microsoft.azure:azure-mobile-services-android-sdk:2.0.2-beta'
    compile 'com.google.android.gms:play-services:7.0.0'
    compile 'com.microsoft.azure.android:azure-storage-android:0.5.0@aar'
    compile 'com.google.guava:guava:18.0'
    compile 'com.microsoft.azure:azure-mobile-services-android-sdk:2.0-beta'
    compile(group: 'com.microsoft.azure', name: 'azure-notifications-handler', version: '1.0.1', ext: 'jar')
    compile 'com.twilio.sdk:twilio-java-sdk:3.4.5' <--- where jar is added
}

最终向 twilio 网络服务发出了一个简单的 http 请求,而不是使用依赖项为我发出请求...完美无缺