Questions tagged [android-uselibrary]
3 questions
7
votes
1 answer
What's the difference between principles of useLibrary and compile files('') in build.gradle?
After Android 6.0 releases, Support for the Apache HTTP client is removed. If our app is using this client and targets Android 2.3 (API level 9) or higher, HttpURLConnection class is recommended. It's said that this API is more efficient because it…

SilentKnight
- 13,761
- 19
- 49
- 78
3
votes
2 answers
What has useLibrary changed to in gradle experimental 0.6.0-alpha1?
I am trying to port my gradle.build over to gradle experimental. I have modified my existing android configuration over as below:
android {
compileSdkVersion = compileSdk
buildToolsVersion = buildTools
useLibrary…

learn_develop
- 1,735
- 4
- 15
- 33
2
votes
4 answers
useLibrary 'org.apache.http.legacy' does not work
I am using Android 1.5 (Win 8.1 x64), I forked the DrKLO/Telegram repository on GitHub and cloned it on my local machine. Now whenever I try to sync Gradle or clean/build project, the Gradle sync fails with this message:
Warning:Unable to find…

Emad Omar
- 729
- 9
- 23