Android Studio更新後出現Error:Cause: failed to find target with hash string 'android-23' 錯誤
今天使用vpn更新了android Studio,更新過程中一切順利,誰知更新完成後原來的專案一片錯誤,提示failed to find target with hash string ‘android-23’ 。
後來經過網上查詢資料後,發現問題出在sdk的目錄(我的預設是在C盤)C:\Users\Administrator\AppData\Local\Android\sdk\temp這個資料夾上。
原因是Android Studio安裝程式在安裝完成之後會將temp這個目錄設為只讀狀態,導致更新SDK的時候寫入temp目錄出錯。其實當初更新的時候是有提示的,只不過本人一時大意,以為一直預設就可以了,沒有仔細看。
解決的方法是:右鍵點選temp資料夾,選擇屬性,將“只讀”選項的勾選狀態去掉後就可以了。然後重啟Android Studio,重啟後會自動再寫入的,這時就可以了。
當重啟後Android Studio可以正常使用後,再看temp資料夾的屬性你會發現只讀屬性又會被自動勾選,但是已經沒關係了,下次更新記得去掉勾選就可以了。
相關推薦
Android Studio更新後出現Error:Cause: failed to find target with hash string 'android-23' 錯誤
今天使用vpn更新了android Studio,更新過程中一切順利,誰知更新完成後原來的專案一片錯誤,提示failed to find target with hash string ‘android
Error:Failed to find target with hash string 'android-25' in: E:\androidstudio\androidstudio\sdk
1.工程從一個電腦執行 然後放到另一臺電腦 上報錯 Error:Failed to find target with hash string ‘android-25’ in: E:\androidstudio\androidstudio\sdk 2.有
android stdio 編譯專案報Error:Failed to find target with hash string 'android-24
android stdio 編譯專案報Error:Failed to find target with hash string 'android-24 檢視已有的SDK 設定專案的sdk為 25 andr
Failed to find target with hash string 'android-26' in
是因為 專案使用 Android 26 但是 SDK並沒有安裝,使用了其他版本 參考 https://blog.csdn.net/ThePromonkeyOf_HeLuo/article/details/78518701 去SDK Manager中下載相應的api,之後從新編譯即可。新版Android
Failed to find target with hash string 'android-26' in
是因為 專案使用 Android 26 但是 SDK並沒有安裝,使用了其他版本 參考 https://blog.csdn.net/ThePromonkeyOf_HeLuo/article/details/78518701 去SDK Manager中下載相應的api,之後從新編譯即可。新版
Android studio的錯誤:radle sync failed: Cause: failed to find target android-21 :
選擇 gif get 產生 target 是什麽 版本信息 roi oid 這個錯誤在Android studio中經常出現,特別是你在編譯不同的app的時候,到底是什麽原因會導致該錯誤產生呢? 首先看錯誤信息,是找不到目標android版本-21導致的,這就很明顯了
Android Studio 3.1.4 報錯Failed to find style 'coordinatorLayoutStyle' in current theme
使用最新版的AS3.1.4安裝後 執行hello world程式,預覽報錯Failed to find style ‘coordinatorLayoutStyle’ in current theme。 如圖。 網上找了些方法,沒解決,然後去Google找了下,在stackoverflo
Android Studio調試出現 Error running app 錯誤
Error running app:Instant Run requires 'Tool | Android | Enable ADB integration‘ to be enabled. 在第一次除錯寫android程式的時候出現的問題。我第一次使用Android
android studio 除錯時出現Error while Launching activity
有時候 除錯的時候 會出現這樣的問題 因為專案需要 我引用網上的錯誤資訊 Error while executing: am start -n "com.quanziben.zengyinbao.
Android Studio更新後開啟老專案報錯,但是能執行
我們一個老專案,一個多月沒打開了,然後我想考裡面的程式碼,就把它打開了,開啟後全部報錯,嚇我一跳,整個公司的安卓程式碼就我這一份啊,然後我重啟AS,還是報錯,重啟電腦也是報錯,但是能執行。無奈之下,只好進行百度查詢,發現原來是build快取的問題,按照網上所說清空buil
Android studio執行project出現了Installation failed since the device possibly has stale dexed jars...的問題
Q:今天執行我的as的project,總是失敗,出現瞭如圖的錯誤,整了好久都沒解決,看帖子有的建議修改build.gradle檔案的buildToolsVersion,有的建議Build-->c
QT學習筆記:關於QT下配置OpenCV3.4.0後出現 error: undefined reference to 'cv::xxx'的問題及解決方案
按照網上的辦法,在QT中pro檔案末尾新增以下程式碼來引入OpenCV的庫和標頭檔案: INCLUDEPATH += D:\OpenCV3.4\opencv\build_mingw\install\x64\mingw\include LIBS += D:\Ope
Linux下重新安裝MySql後出現'MySQL Daemon failed to start‘解決方法
在 CentOS 6.4上之前安裝過Mysql資料庫,想升級到較新的版本所以就重新升級了一下資料庫。可是重新安裝後執行:service mysqld start 重啟資料庫總是會出現如下提示: MyS
Android Studio 新建工程出現 Waiting for build to finishing
解決方案: Ctrl + Shift + A 快捷鍵,輸入 Sync Project with Gradle Files 點選等待 Sync 完成即可, 如果報 Gradle sync failed: Cause: error in opening zip fi
解決gradle "Error:Cause: unable to find valid certification path to requested target"
這是由於app不信任我們的證書導致https會話失敗。 將jcenter()修改為: jcenter{ url 'http://jcenter.bintray.com' } 1 2 3 參考:http://jimiatwork
Android studio 編譯.so檔案生成 No rule to make target
之前有接觸過jni相關的一些東西,今天趁著時間,自己做了一下編譯jni的環境搭建。沒想到遇到各種問題,下面將問題給拿出來做個記錄,以後好避免這些問題。 1、首先我是通過編寫.mk檔案去編譯.so檔案的,而不是現在的Cmake去編譯.so。 2、我由於之前一直有在網上看jni如果編譯.so ,
Android studio 報錯 gradel project sync failed Error:Cause: peer not authenticated
authent post -m -h cal all del erro 文件 在網上找了半天,應該是找不到gradel的路徑,試了網上非常多方法。本人解決例如以下: 在android studio中設置gradle。打開File-> settings->Gr
關於android studio 出現Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 的解決辦法 前段時間開啟Android studio 在build過程中總會出現以下錯誤
前段時間開啟Android studio 在build過程中總會出現以下錯誤 Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'co
android studio 出現Error:Execution failed for task ':app:preDebugAndroidTestBuild'. 的解決辦法
錯誤程式碼: Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations
Android Studio更新導致Program type already present:的問題以及如下描述。R檔案丟失問題 Error:Execution failed for task ':app:processDebugManifest'
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1,