![](/img/trans.png)
[英]Connection timeout error for maven repo in gradle
運行 Jenkins 管道時出現以下錯誤: 我的 build.gradle 文件包含以下條目: 當我在本地運行這個應用程序時它工作正常但是當我嘗試通過 Jenkins 將它部署到 openshift 然后在構建步驟中它由於上述問題而失敗。 ...
[英]Connection timeout error for maven repo in gradle
運行 Jenkins 管道時出現以下錯誤: 我的 build.gradle 文件包含以下條目: 當我在本地運行這個應用程序時它工作正常但是當我嘗試通過 Jenkins 將它部署到 openshift 然后在構建步驟中它由於上述問題而失敗。 ...
[英]Android: app area reduced after upgranding gradle to 7.4.0
賞金將在 6 天后到期。 此問題的答案有資格獲得+50聲望賞金。 jack_the_beast想提請更多人關注這個問題。 將 gradle 從 7.0.4 升級到版本 7.4.0 后,我遇到了一個奇怪的問題。 基本上它看起來像“應用程序窗口”已經垂直收縮,所以導航欄上方出現了一些空間並且它改變了 ...
[英]Android Studio Gradle Could not find gradle-7.4.0.jar
我在 android 工作室 gradle 處理了幾個小時的問題,我無法解決。 我只是想構建我的第一個項目,但 gradle 有問題。這就是我的 build.gradle 文件的樣子: 在此處輸入圖像描述這是問題的上下文: 我還添加了圖像。 我不知道如何解決這個問題,我們將不勝感激。 ...
[英]Getting unexpected `Cannot set the value of read-only property` when writing own plugin
我正在嘗試編寫如下所示的 DSL: 我通過向項目添加擴展來做到這一點,它是ToolSetup條目的容器: 我遵循了用戶指南中的示例並在ToolSetup中聲明了argsFile屬性: 我四處搜索,發現這僅在ToolSetup具有name屬性時才有效。 我將ToolSetup修改為: 我得到以下信息 ...
[英]Could not get unknown property 'destinationDir'
當我在 Android 插件項目中將 kotlin-gradle-plugin 版本從 1.5.0 升級到 1.7.20 時,出現了這個異常。 我在build.gradle中使用此代碼 我該如何解決? 我的 evn 是: gradle:7.4 android-gradle:7.3.0 kot ...
[英]Gradle Task Modify code before compile (android)
問題:在編譯之前修改代碼(像混淆這樣的任務) 第一種方法: 運行一個任務(backupTask)來備份'src/main/java'目錄修改原代碼構建后恢復備份以獲取原始代碼例子: 另一個用例:使用 try catch 塊修改帶注釋的 function 編譯前的結果代碼(但不修改原始代碼) 要求: ...
[英]Gradle failed to resolve: com.squareup.spoon:spoon-client:2.0.0-SNAPSHOT
我正在嘗試將 Spoon 插件用於我的儀器測試,但我無法繼續處理 Gradle 錯誤 unable to resolve dependency Failed to resolve: com.squareup.spoon:spoon-client:2.0.0-SNAPSHOT 。 我使用了這個指南: ...
[英]What does create method do in gradlePlugin.plugins?
在 gradle 文檔中: https ://docs.gradle.org/current/userguide/custom_plugins.html#sec:custom_plugins_standalone_project 代碼塊是: 我注意到它調用了create方法。 我查看了源代碼。 它 ...
[英]How to build and consume gradle plugin inside a multi-module project?
大局觀我有一個庫,在其他項目中用作依賴項。 每個項目都有一些與test suites相關的常見配置,這取決於我的庫。 這就是為什么我創建了一個plugin來為我配置這些插件,這樣我就可以添加插件並完成它: 項目結構 問題如果它是一個單獨的獨立項目,該插件可以正常工作。 不幸的是,這使我的工作流程變 ...
[英]Import common task properties to build.gradle
我們有幾個具有通用任務配置的庫,我想將它們分解成一個 Gradle 插件,而不是將它們復制到每個 repo 中。 有沒有辦法做到這一點? 我在文檔中找不到任何內容。 當前state: (這存在於所有回購協議中) 所需 state: 定義了插件的中央倉庫每個 repo 只是導入插件來獲取jar任務 ...
[英]Choose custom GraalVM version to build Micronaut native image
我正在嘗試構建一個 Micronaut 應用程序作為 AWS Lambda 的本機映像。但不知何故,該構建沒有選擇本地安裝的 GraalVM 版本,而是自行下載 GraalVM 版本。 我搜索了一些文檔,但沒有找到我們如何禁用/更改此行為的任何地方。 以下是我如何構建本機映像: ./gradlew ...
[英]Could not find (Package name). Searched in the following locations:
當我嘗試構建我的 Android 項目時,我遇到了這個問題:` ` 錯誤信息下載上面的package如何解決問題? 以前,它工作正常。 但是,當我嘗試將版本號降級到 1.2.0 時。 它工作正常。 因此,問題似乎與 2.0.0 版有關。 ...
[英]How can I configuration spring-boot-configuration-processor when I would like to change from KAPT to KSP? I get every time error
基本問題, kapt處於維護模式。 所以我想換成ksp 。 從理論上講,它相當於像 kapt 一樣更快。 更改選項不清楚。 我做了: 這是 取而代之 還有 取而代之 因此,當我構建項目時出現以下錯誤: 我已經在 inte.net 上挖了快兩天了,但我仍然沒有找到解決這個問題的方法。 如果有人知道,我 ...
[英]Is there a way to test that custom Gradle plugins configured a project properly?
我正在開發一個自定義 Gradle 插件,我想測試它是否配置正確,例如目標項目的存儲庫、依賴項和配置。 有任何想法嗎? ...
[英]How to add a custom gradle plugin to Intellij Idea?
我根據文檔創建了一個簡單的 gradle 插件。 但是插件並沒有出現在Idea Gradle toolar: 我也嘗試添加以下代碼,但沒有任何區別: 我應該怎么做才能讓它出現在那里? ...
[英]I can't compile anymore: AGPBI: {"kind":"error","text":"java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0","sources":
幾天來,我無法再用 MacBook 編譯我的項目,而我可以用 Windows PC 編譯它,盡管沒有進行任何更改。 直到幾天前,我能夠毫無問題地編譯,但現在我無法在 MacBook 上編譯,即使以前的版本也只發生在 MacBook 上而不是 Windows PC 上,我仍然可以毫無問題地編譯。 關 ...
[英]How can I only generate kotlin src files from the protobuf gradle plugin?
I am successfully generating kotlin src files, but my code still seems to reference the java files because both java + kotlin are generated. 生成文件后,我 ...
[英]flutter problem: Kotlin version that is used for building with Gradle (1.7.10) differs from the one bundled into the IDE plugin (1.6.10)
用於與 Gradle (1.7.10) 一起構建的 Kotlin 版本與捆綁到 IDE 插件 (1.6.10) 中的版本不同在這里我使用的是最新的 kotlin 版本,然后我遇到了一些問題,那么如何解決呢? ...
[英]React Native error Unable to extract native debug metadata - Gradle 7.X +
我面臨一些煩人的問題。 我在一個項目中工作,其中基礎是 kotlin,外部模塊在反應(0.61.5)。 與配置完美配合:插件 4.0.1 和 Gradle 6.6,但我們實現了一個新模塊(該模塊在 compose 中),所以我們必須更新到 gradle 7.X + 並且應用程序開始崩潰。 錯誤:無 ...
[英]Does Oracle Cloud Artifact Registry support Gradle
目前,我正在使用 Gradle,我需要存儲庫來存儲庫。 我的問題是:Oracle Cloud Artifact Registry是否支持Gradle? 我在https://docs.oracle.com/en-us/iaas/Content/artifacts/manage-artifacts.h ...