if you are using target sdk as 23 add below code in your build.gradle
android{
compileSdkVersion 23
buildToolsVersion '23.0.1'
useLibrary 'org.apache.http.legacy'
}
and change your buildscript to
classpath 'com.android.tools.build:gradle:1.3.0'
for more info follow this link
More Related Contents:
- How do I show dependencies tree in Android Studio?
- no cached version available for offline mode
- Android Gradle plugin 0.7.0: “duplicate files during packaging of APK”
- Android- Error:Execution failed for task ‘:app:transformClassesWithDexForRelease’
- How to configure gradle to work “offline” (using cached dependencies)
- Using Build Flavors – Structuring source folders and build.gradle correctly
- “Gradle Version 2.10 is required.” Error
- Android Studio: Gradle – build fails — Execution failed for task ‘:dexDebug’
- Android Studio – Importing external Library/Jar
- Android Studio how to package single AAR from multiple library projects?
- Android Studio: Gradle sync failed: Could not HEAD ‘…’. Received status code 502 from server: Bad Gateway [closed]
- How to create an Android Library Jar with gradle without publicly revealing source code?
- how can I add the aidl file to Android studio (from the in-app billing example)
- Android Studio Gradle issue upgrading to version 0.5.0 – Gradle Migrating From 0.8 to 0.9 – Also Android Studio upgrade to 0.8.1
- Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to
- Resources$NotFoundException: File res/drawable/abc_ic_ab_back_material.xml
- How to automatically uninstall android app from device before installing a new version
- Upgraded to Android studio 3.4 – Aapt2InternalException: AAPT2: Daemon startup failed
- Gradle Duplicate Entry: java.util.zip.ZipException
- How to include a library module dependency in an Android Studio project?
- Android Studio: Android Manifest doesn’t exists or has incorrect root tag
- Android Studio: how to generate signed APK using Gradle?
- How to set up gradle and android studio to do release build?
- Android Studio and Gradle build error
- Gradle error upgrading to Android Studio 3.0 Beta 1
- Android Gradle DexException: Multiple dex files define Lorg/hamcrest/Description
- After update android studio could not create parent directory for lock file
- Could not find property ‘outputFile’ on com.android.build.gradle.internal.api.ApplicationVariantImpl
- Can an AAR include transitive dependencies? [duplicate]
- Android build gradle is too slow (Dependency Resolution)