Android stuido 錯誤:Error:Unable to find optional library: org.apache.http.legacy
今天在匯入新專案的時候出現了一個從來都沒有見過的錯誤,讓我鬱悶了很久,在網上也找了很多一樣錯誤解決方法,但是最終也是沒有解決,不能說網上的解決方法是錯誤,只能說網上的解決辦法是最基礎的,有時候不能夠解決問題,錯誤的截圖如下:
網上的解決辦法是:
1. API23 之後引用httpclient等類會報錯找不到此類,是官方隱藏了,給的解決方法是:
build.gradle中加入配置:
<span style="font-size:24px;">useLibrary 'org.apache.http.legacy</span>
<span style="font-size:24px;">2.還有的就是在sdk android-23中的optional中加入:org.apache.http.legacy.jar檔案和一個optional.json檔案。</span>
<span style="font-size:24px;">網上的解決辦法我都試了,還是一直提示相同的錯誤。最後是實在是沒有辦法,我找到我SDK的存放位置,把android-23這個資料夾給刪掉了,又重新下載了一個android-23,最後重啟程式後,竟然成功了。所以提醒大家,如果大家試了以上的方法,還是沒有用的情況下,不妨把android-23這個檔案給刪除掉,然後重啟程式,看看能不能成功。</span></span>
相關推薦
Android stuido 錯誤:Error:Unable to find optional library: org.apache.http.legacy
今天在匯入新專案的時候出現了一個從來都沒有見過的錯誤,讓我鬱悶了很久,在網上也找了很多一樣錯誤解決方法,但是最終也是沒有解決,不能說網上的解決方法是錯誤,只能說網上的解決辦法是最基礎的,有時候不能夠解決問題,錯誤的截圖如下: 網上的解決辦法是: 1. API23
Android 專案報錯 Error:Unable to find optional library: org.apache.http.legacy
Eclipse 專案移植到AndroidStduio 後 執行報錯Error:Unable to find optional library: org.apache.http.legacy Android 6.0版本已經已經基本將Apahce Http Client 移
Android 6.0中"Unable to find optional library: org.apache.http.legacy"錯誤解決
Android 6.0版本已經已經基本將Apahce Http Client 移除出SDK,會報出以下錯誤: " Unable to find optional library: org.apache.http.legacy" 那麼問題來了,如果我在以前的專案中使用
解決:Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List
解決新增Butterknife8.8.1依賴後出錯的問題 1.在根目錄下的build.gradle中的dependencies新增如下: 這裡注意是8.4.0的版本!! classpath 'com.jakewharton:butterknife-gradle-pl
Python3 pip 解決問題: error: Unable to find vcvarsall.bat
當我給 python3.5 安裝 第三方庫 charset 時:pip install charset,出現了錯誤: D:\WorkSpace\python_ws\python-large-web-crawler\firstdemo>pip
Android studio錯誤:IllegalArgumentException: Unable to locate adb
剛才遇到一個問題,感覺是關於adb被佔用的問題,解除佔用adb好幾次,然後接著重啟都沒用。之後發現是sdk中的platform-tools沒裝,然後把這個裝上去就好了。希望對遇到這方面問題的朋友有幫助。 關於sdk更新慢的問題,我這裡有一個快速更新sdk的方法-----
Android開發問題:ActivityNotFoundException: Unable to find explicit activity class
Android 2.3.3 Eclipse Version: 3.7.0 LogCat LogCat 報錯: 02-03 15:52:46.363: INFO/ActivityManager(61): Starting: Intent { flg=0x10
kettle-linux中執行hive的ktr報錯:Error connecting to database: using class org.apache.hive.jdbc.HiveDriver
1.將windows環境中產生的ktr檔案上傳到linux環境中執行 [[email protected] data-integration]# ./pan.sh -file=/opt/cm/hadoop/pdi-ce-7.1.0.0-12/data-integr
整合butterknife出現 Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()
錯誤為: Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'. Possible causes for this unexpected erro
Android Studio 解決 Error:Unable to find method 'org.gradle.api.tasks.TaskInputs.file(Ljava/lang/Object;)Lorg/gradle/api/tasks
Gradle編譯異常資訊 Error:Unable to find method 'org.gradle.api.tasks.TaskInputs.file(Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskInputFilePropertyB
Android studio執行出現錯誤:IllegalArgumentException: Unable to locate adb
更新安裝sdk, 執行出現錯誤,做個筆記。 sdk中的platform-tools沒裝 導致無法使用 Tools - Android - SDK Manager -SDK Tools -Android SDK platform 然後把這個裝上去就好了。希望對遇到
轉載:徹底解決 error: Unable to find vcvarsall.bat
轉自:http://blog.csdn.net/secretx/article/details/17472107 侵權刪 1.windows上做Python開發,搭環境還真不比Linux容易。error: Unable to find vcvarsall.bat這
error rabbitMQ:Error: unable to perform an operation on node 'rabbit@xxxx'.
rabbit xxx this inline nbsp matching one server text C:\Program Files\RabbitMQ Server\rabbitmq_server-3.7.4\sbin>rabbitmqctl list_queu
xcrun: error: unable to find utility "PackageApplication", not a developer tool or in PATH
view chmod baidu aid log nts pac mod ica Xcode升級到8.3後 用命令進行打包 提示下面這個錯誤 xcrun: error: unable to find utility "PackageApplication", not a
[vscode react-native] xcrun: error: unable to find utility "instruments", not a developer tool or in
執行環境:Mac + vscode + xcode IOS ReactNative執行的時候出現這個錯誤 使用vscode執行reactnative 專案時報錯:xcrun: error: unable to find utility "instruments", not a develop
OpenCV安裝libjasper-dev依賴包錯誤:E: Unable to locate package libjasper-dev
OpenCV安裝libjasper-dev依賴包出現如下錯誤: [email protected]:~/Files/opencv-3.1.0$ sudo apt-get install libjasper-dev Reading package lists... Done
error: Unable to find vcvarsall.bat
error: Unable to find vcvarsall.bat faster_rcnn進行訓練編譯時,報這個錯誤 faster_rcnn 2015, 專案地址:https://github.com/dBeker/Faster-RCNN-TensorFlow-Python3.5
RabbitMQ_____error rabbitMQ:Error: unable to perform an operation on node '
Error: unable to perform an operation on node '[email protected]' 將登入身份改為指定帳戶,重啟RabbitMq服務 Error: unable to perform an operation on node '
Android studio出現Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques的解決辦法
最近更新了一下Android Studio,在匯入新專案之後出現Error:Unable to tunnel through proxy. Proxy returns “HTTP/1.1 400 Bad Request”的錯誤,如下圖所示: 經過檢查後發現這裡是丟失了android studio的gradl
android studio提示Error:Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Reques
解決方法:1.studio裡面->setting->Build,Execution,Deployment裡面的Gradle->配置此專案的gradle檔案路徑為studio應用所使用的版本路徑(如果還報錯,檢視gradle版本是否與studio版本一致)