rn Could not download kotlin-compiler-embeddable 各種包下載不下來,下載超時
阿新 • • 發佈:2022-03-17
報錯資訊 Could not download kotlin-compiler-embeddable-1.3.50.jar
A problem occurred configuring project ':react-native-webview'. > Could not resolve all artifacts for configuration ':react-native-webview:classpath'. > Could not download kotlin-compiler-embeddable-1.3.50.jar (org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.50) > Could not get resource 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.50/kotlin-compiler-embeddable-1.3.50.jar'. > Could not GET 'https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-compiler-embeddable/1.3.50/kotlin-compiler-embeddable-1.3.50.jar'. > Read timed out
1. 手動去下載
進入倉庫網址連結: https://mvnrepository.com/
2. 搜尋需要的包
搜尋:kotlin-compiler-embeddable
3. 點開詳情
4. 選擇版本
5. 點選下載
6. 配置下載jar檔案到 .gradle 檔案中
需要注意的是:找到你自己的使用者名稱下面的目錄把我這裡的hhlt換成你自己使用者名稱
參考:注意看圖上面的紅色文字
/Users/使用者/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.3.50/3c003f60a655f2393bb2b2ad4e9d0de610230448
替換成
/Users/使用者/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-compiler-embeddable/1.3.50/kotlin-compiler-embeddable-1.3.50.jar