Open bytebeats opened 9 years ago
Maybe it helps: add to build.gradle compile 'org.jbundle.util.osgi.wrapped:org.jbundle.util.osgi.wrapped.org.apache.http.client:4.1.2'
It was said that a org.apache.http.legacy.jar
in Android/sdk/platforms/android-23/optional, then how could I add this jar into my Android Studio? Put it into libs and then add as a library?
as @LittlePanpc answer ,i get org.apache.http.legacy.jar in Android/sdk/platforms/android-23/optional,and Put it into libs and then add as a library.
This is how you add the legacy jar. Make sure you are using the latest gradle too.
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
useLibrary 'org.apache.http.legacy'
...
}
@f3ist added useLibrary, but got: can not solve the symbol "useLibrary" error
@LittlePanpc
I build a branch which no Apache http need, you could try~ https://github.com/panxw/android-volley-manager
@shic You should use newer grade and android grade build tools to use useLibrary
@panxw Did u change the repo?Is this the one you have build? https://github.com/panxw/android-volley-manager
@thevirus20 yes, I'm trying to use gradle.
So both(this one and yours) are same in terms of usage or you have renamed/removed/introduced some method while porting to Google recommended URLConnection
?
If above solution is not work then try my solution
I experienced this problem recently, and it is caused by the path length restriction I think it´s 256 characters maximum.
Relocate your Project and the build will succeed.
I opened this project in Android Studio by Github. After
gradle.properties
was changed like this:this master project couldn't be compiled successfully.
And as far as I know, apache httpclient packages in Android Pre-Marshmallow are removed since then Android SDK 23.
So, what changes would
volley
make then for the sake of removal of apache in Android SDK?