![](/img/trans.png)
[英]BuildConfig could not resolve after upgrading Android Studio to Flamingo | 2022.2.1 Patch 1
我的項目在設備上成功運行,但是當我升級我的項目時, BuildConfig文件沒有解析 我已經使Invalidate Caches...並Sync Project with gradle files ,但BuildCongfig文件無法解析。 我創建了一個新項目,但在該項目中存在同樣的問題。 ...
[英]BuildConfig could not resolve after upgrading Android Studio to Flamingo | 2022.2.1 Patch 1
我的項目在設備上成功運行,但是當我升級我的項目時, BuildConfig文件沒有解析 我已經使Invalidate Caches...並Sync Project with gradle files ,但BuildCongfig文件無法解析。 我創建了一個新項目,但在該項目中存在同樣的問題。 ...
[英]encountered warning error: Runtime JAR files in the classpath should have the same version
在項目 build.gradle 中: 在應用程序 build.gradle 中: ...
[英]GraalVM native image build `nativeCompile` task fails on Gradle after migrating from Java11 to Java17
綜上所述,將 Gradle 屬性(源/目標)和原生 GraalVM 鏡像從 Java11 遷移到 Java17 后,構建任務在 Gradle 失敗。 這是一個 micronaut Java 服務,在不泄露任何專有代碼庫細節的情況下,我分享了我的 Gradle output 失敗的“nativeCom ...
[英]How to use Spring boot 3 with JSF?
我正在嘗試創建一個由 Spring boot 3.0 管理的 JSF 項目。 但不管我怎么做都行不通。 我在 web 上找不到任何示例。 我的依賴項: 我的主要應用程序 class: 我的配置 webapp/WEB-INF/faces-config.xml: 測試 XHTML 文件: 日志: 我看 ...
[英]Why build.gradle which uses Android.mk to build native files compiles them on every build?
我正在維護一個遺留的 Android 項目,它使用 Android.mk 構建文件而不是 CMake。以前本機編譯是從命令行批處理文件完成的。 我將構建系統更改為使用 build.gradle。 出於某種奇怪的原因,當我構建應用程序時,每次構建應用程序時都會調用本機文件編譯。 即使我沒有對本機文件 ...
[英]Using a spring-beans .xml file (in 'resources' folder) from a shared module with gradle multi module (subproject)
(為了幫助解決這個問題,我在這個問題的底部有 github 個鏈接) 我有(並且“從”以下 gradle 多個模塊/項目開始) 設置.gradle 在子項目中: ':來源:java:myapproot:myapp-toplayer-console-di-xml-one' 我有典型的 Sprin ...
[英]How to get windows domain name in gradle taks?
我將根據運行代碼的系統在 DB localhost 或開發服務器 DB 之間切換。 在 build.gradle 系統.getenv() System.getProperty("test.property") 但這個是 null。 2 種可能的解決方案,1) 設置系統變量 2) 嘗試其他方式獲 ...
[英]Building a React Native mobile app via Github Actions CI, working locally but overflows in the CI Pipeline
我一直在努力建立一個集成管道,這樣當我將新版本推送到主分支時,我可以為 android 手機快速構建新的 APK 文件。 為此,我創建了以下 CI 構建文件: name: React Native build android on: pull_request: branches: [ ...
[英]FAILURE: Build failed with an exception Where: Script 'C:\scr\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1256
各位 Flutter 開發者大家好, 我目前在構建 Flutter 應用程序時遇到問題,我迫切需要您的幫助。 我收到的錯誤消息是: “失敗:構建失敗並出現異常 * Where: Script 'C:\scr\flutter\packages\flutter_tools\gradle\flutter ...
[英]A failure occurred while executing app:checkDebugDuplicateClasses
我有以下配置: Android 工作室電鰻 | 2022.1.1 gradle-wrapper.properties: dependencies.gradle: build.gradle: build.gradle(應用) 我有以下錯誤: 1:任務因異常而失敗。 什么地方出了錯: 我不 ...
[英]compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0
我正在重建我的 android 項目,它在 java 中,一些類是在 kotlin 中編寫的。我在谷歌上搜索但我的問題沒有解決。 我在構建項目時遇到以下錯誤: /home/bansal/.gradle/caches/transforms-2/files-2.1/0bea321a20a76ca87 ...
[英]Third Party SDK won't read imports, even when the dependency is in the Build Gradle
我從另一個項目導入了第三方 SDK。 我已經設置了它,它不會讀取某個依賴項,即使我將依賴項放在 build.gradle 中也是如此。 這是 SDK 而在 build.gradle 我已經嘗試了一些事情,但似乎沒有任何效果。 任何幫助表示贊賞。 謝謝 ...
[英]Connection timeout error for maven repo in gradle
運行 Jenkins 管道時出現以下錯誤: 我的 build.gradle 文件包含以下條目: 當我在本地運行這個應用程序時它工作正常但是當我嘗試通過 Jenkins 將它部署到 openshift 然后在構建步驟中它由於上述問題而失敗。 ...
[英]Execution failed for task ':app:checkReleaseDuplicateClasses'
我的 react-native android 構建中突然出現構建問題。 令人驚訝的是它是在早上建造的,沒有做任何改變,但突然,它失敗了。 這是我得到的錯誤。 知道為什么會這樣嗎? 確實在堆棧和 GitHub 中也看到了一些類似的問題,但到目前為止,這些問題中建議的任何修復對我都不起作用。 似乎這些 ...
[英]Flutter : Could not get unknown property 'keystoreProperties' for project ':app' of type org.gradle.api.Project
每次我嘗試構建我的應用程序包時,它都會向我顯示此錯誤。 Could not get unknown property 'keystoreProperties' for project ':app' of type org.gradle.api.Project. 我嘗試了多種解決方案,但沒有一個有效 ...
[英]Ignore file when calculating gradle cache fingerprint
在我的項目中,我在運行時訪問由build-info.properties springboot 插件buildInfo()任務生成的 build-info.properties,以將我的項目版本包含在日志元數據中。 我的問題是這個文件包含在 gradle 任務的指紋計算中,例如通過類路徑指紋進行測試 ...
[英]Gradle Local Module Transitive Dependency
我的項目結構是 - 在GradleProjectA中添加了Spring依賴項, 現在 - 如何在GradleProjectA中添加GradleProjectB ,以便將相同的 Spring 依賴項添加/傳輸到GradleProjectB ? 這樣我就不需要在GradleProjectB中再次添加 S ...
[英]Android Studio Gradle Could not find gradle-7.4.0.jar
我在 android 工作室 gradle 處理了幾個小時的問題,我無法解決。 我只是想構建我的第一個項目,但 gradle 有問題。這就是我的 build.gradle 文件的樣子: 在此處輸入圖像描述這是問題的上下文: 我還添加了圖像。 我不知道如何解決這個問題,我們將不勝感激。 ...
[英]Unexpected resource type 'dimen' expected: string
我更新到 API 33 現在在設計器中出現錯誤“ unexpected resource type 'dimen' expected: string ”。 這個錯誤不會影響任何東西,但我想刪除它。 當我將 build.gradle 中的compileSdkVersion和targetSdkVersi ...
[英]error "Could not resolve all files for configuration ':app:debugCompileClasspath'."
我一直在更改我的 Gradle 文件中的很多東西,但到目前為止沒有任何效果請幫忙,當我在模擬器上單擊以運行我的應用程序時,這是我得到的錯誤。 原因:org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$Ar ...