久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用 Gradle 編譯時出錯(找不到下載的依賴項)

Error when compiling with Gradle (can#39;t find downloaded dependencies)(使用 Gradle 編譯時出錯(找不到下載的依賴項))
本文介紹了使用 Gradle 編譯時出錯(找不到下載的依賴項)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我開發了一個應用生成系統,它通過命令行 Gradle 編譯命令重新生成應用.

I develop an app generation system that is regenerating apps by command line Gradle compilation commands.

在我的 Windows Server 2008 中,我在更新到最新的 Gradle 版本和 Gradle 插件版本后遇到了問題.

In my Windows Server 2008, I'm facing a problem after updating to the last Gradle version and Gradle plugin version.

編譯時出現以下錯誤:

C:WindowsSystem32configsystemprofile.gradlecaches	ransforms-1files-1.1appcompat-v7-25.0.0.aare93435c34d5cae8b6677dcef529711a5
esdrawable-xxhdpi-v4abc_text_select_handle_middle_mtrl_light.png: error: file not found.

C:WindowsSystem32configsystemprofile.gradlecaches	ransforms-1files-1.1appcompat-v7-25.0.0.aare93435c34d5cae8b6677dcef529711a5
esdrawableabc_btn_colored_material.xml: error: file not found.

C:WindowsSystem32configsystemprofile.gradlecaches	ransforms-1files-1.1appcompat-v7-25.0.0.aare93435c34d5cae8b6677dcef529711a5
esdrawable-hdpi-v4abc_textfield_search_default_mtrl_alpha.9.png: error: file not found.

and a lot more of errors like those...

我不確定為什么會收到此錯誤,因為文件已正確下載并且正確位于該方向.

I'm not sure why I'm getting this error, because the file is correctly downloaded and it's correctly located on that exactly direction.

它的路徑長度為 204 個字符,因此應該不會超過 NTFS Windows 文件系統上 255 個路徑字符的限制.

It has a path length of 204 characters, so supposedly it's not surpassing the limit of 255 path characters on NTFS Windows file system.

是否可以更改 Gradle 下載其緩存依賴項的位置?這個問題是由這個還是由其他原因引起的?

It is possible to change the location where Gradle downloads it's cached dependencies? Is this problem caused by this or by other thing?

推薦答案

終于解決了這個問題,將windows中的環境變量GRADLE_USER_HOME設置為c:/gradle-cache

finally i solved this setting the environmental variable GRADLE_USER_HOME in windows to c:/gradle-cache

所以肯定與文件路徑長度有關

so definitively it's related to file path lenght

這篇關于使用 Gradle 編譯時出錯(找不到下載的依賴項)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

IncompatibleClassChangeError after updating to Android Build Tools 25.1.6 GCM / FCM(更新到 Android Build Tools 25.1.6 GCM/FCM 后出現 IncompatibleClassChangeError)
How to get current flavor in gradle(如何在 gradle 中獲取當前風味)
How to fix quot;unexpected element lt;queriesgt; found in lt;manifestgt;quot; error?(如何修復“意外元素lt;查詢gt;在“清單中找到錯誤?)
Multi flavor app based on multi flavor library in Android Gradle(基于 Android Gradle 中多風味庫的多風味應用)
Android dependency has different version for the compile and runtime(Android 依賴在編譯和運行時有不同的版本)
Transitive dependencies for local aar library(本地 aar 庫的傳遞依賴)
主站蜘蛛池模板: 亚洲中午字幕 | av国产精品毛片一区二区小说 | www精品美女久久久tv | 国产一区二区 | 国产高清精品在线 | 国产精品免费福利 | 免费骚视频 | 最新av片 | 日韩免费一区二区 | 国产美女高潮 | 免费一级欧美在线观看视频 | 精品国产欧美一区二区三区成人 | 亚洲午夜精品一区二区三区 | 久久51| 草草网 | 91精品国产综合久久久动漫日韩 | 丁香久久 | 国产高潮好爽受不了了夜色 | 精品久久香蕉国产线看观看亚洲 | 色偷偷噜噜噜亚洲男人 | 九色在线观看 | 久久久久久久国产 | 亚洲午夜在线 | 欧美精品一区二区三区在线 | 欧美美女被c | 亚洲精品免费视频 | 亚洲高清免费视频 | 91电影 | 亚洲人人| 久久丝袜视频 | 久久久婷婷 | 久久精品91久久久久久再现 | 紧缚调教一区二区三区视频 | 亚洲高清一区二区三区 | 国产精品久久久久久影院8一贰佰 | 国产精品久久久久久久久久 | 国产精品国产三级国产aⅴ浪潮 | 国产97人人超碰caoprom | av大片在线观看 | 国产在线精品一区二区三区 | 欧美激情亚洲天堂 |