当我尝试运行我的应用时,我一直收到以下错误。我试图连接java-twilio jar以使用我的应用程序。我试图在任何地方寻找解决方案但无济于事。任何帮助都会非常感谢
信息:Gradle任务[:app:assembleDebug] 警告:依赖org.apache.httpcomponents:httpclient:4.1.2因调试而被忽略,因为它可能与Android提供的内部版本冲突。 如果有问题,请用jarjar重新打包以更改类包 警告:依赖org.apache.httpcomponents:httpclient:4.1.2因发布而被忽略,因为它可能与Android提供的内部版本冲突。 如果有问题,请用jarjar重新打包以更改类包
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
}
答案 0 :(得分:0)
Ended up making a simple http request to the twilio web service rather than using the dependency to make the request for me...worked perfect