scottdermott / cordova-plugin-discovery

Cordova Service Discovery Plugin for Android & iOS
MIT License
31 stars 30 forks source link

Build failure for Cordova 6.0.0 #3

Closed PauLL54 closed 8 years ago

PauLL54 commented 8 years ago

When compiling the Cordova project with CLI version 6.0.0, the build failed: "package org.apache.http does not exist".

The reason seems to be that the apache packages are deprecated. Is there a way to still use the apache packages?

nbdamian commented 8 years ago

You should be able to add the following to your build.gradle:

android {
......
    useLibrary 'org.apache.http.legacy'
}
gentunian commented 8 years ago

Which file should we use?

./platforms/android/CordovaLib/build.gradle
./platforms/android/build.gradle

Will this be rewritten in order to not use a deprectaed library?

Best,

nbdamian commented 8 years ago

Use ./platforms/android/build.gradle