The system cannot find the file (httpclient-4.0.1.jar) specified in android studio ?
I am trying to create a new app in Android Studio, When I try to Run or debug it shows a compile time error like :
Error:Execution failed for task ':SampleApp:compileDebugJavaWithJavac'.
> java.io.FileNotFoundException: C:\Users\VM\Desktop\SampleApp\libs\httpclient-4.0.1.jar (The system cannot find the file specified)
build.gradle(Module:SampleApp) file
apply plugin: 'com.android.application' android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.app.SampleApp"
minSdkVersion 14
targetSdkVersion 23
manifestPlaceholders = [manifestApplicationId : "${applicationId}",
onesignal_app_id : " ",
onesignal_google_project_number: ""]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
} } dependencies {
compile project(':library_pull_to_refresh')
compile project(':view_pager_indicator')
compile 'com.google.code.gson:gson:2.4'
compile 'com.google.android.gms:play-services-ads:7+'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile files('libs/httpclient-4.0.1.jar')
compile files('libs/universal-image-loader-1.8.6.jar')
compile 'com.onesignal:OneSignal:2.+@aar'
compile 'com.google.android.gms:play-services-gcm:7+'
compile 'com.google.android.gms:play-services-analytics:7+' }
Even after that I can't find any solution.
Please any one guide me.