Hi All, I am using Jenkins 2.423 in my local setup and trying to generate an Android Build (APK). The Build gets failed with below exception.I have used Flavoring in my code and underneath this error message is the config of my build.gradle.Can anyone help?
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:processFlavorProdPublicNewProductionResources’.
Could not resolve all files for configuration ‘:app:flavorProdPublicNewProductionRuntimeClasspath’.
Failed to transform appcompat-1.4.0.aar (androidx.appcompat:appcompat:1.4.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\9e8b072eb64ae57571ff07f8bcaf8d63\transformed\appcompat-1.4.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\1b4bb196aa37a4a854056bb7dcc10fc7\transformed\androidx.appcompat: error: The system cannot find the file specified. (2).
Failed to transform play-services-base-17.0.0.aar (com.google.android.gms:play-services-base:17.0.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\0243de2cd93d8f88db6c8ba6dff9a08b\transformed\jetified-play-services-base-17.0.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\023ac8cc6f7d3c97e196f01fb71dac93\transformed\com.google.android.gms.base: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
Failed to transform core-1.7.0.aar (androidx.core:core:1.7.0) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.status=release}.
Execution failed for AarResourcesCompilerTransform: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\961eaf972c7a2b6abfa99bc82adaaffa\transformed\core-1.7.0.
Android resource compilation failed
ERROR:AAPT: C:\Windows\System32\config\systemprofile.gradle\caches\transforms-3\deb8b2765d0407ef46f0122c41559f17\transformed\androidx.core: error: The system cannot find the file specified. (2).
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
BUILD FAILED in 1m 20s
33 actionable tasks: 32 executed, 1 up-to-date
Build step ‘Invoke Gradle script’ changed build result to FAILURE
Build step ‘Invoke Gradle script’ marked build as failure
Archiving artifacts
Finished: FAILURE
build.gradle
compileSdk 33
defaultConfig {
applicationId "app.bandhan.bhp"
minSdk 22
targetSdk 33
versionCode 38
versionName "2.11.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
signingConfig signingConfigs.release
}
flavorDimensions "buildTypes"
productFlavors {
flavorTest {
dimension "buildTypes"
applicationIdSuffix ".test"
manifestPlaceholders = [flavorName: "@string/app_name_test"]
}
flavorDev {
dimension "buildTypes"
applicationIdSuffix ".dev"
manifestPlaceholders = [flavorName: "@string/app_name_dev"]
}
flavorProd {
dimension "buildTypes"
manifestPlaceholders = [flavorName: "@string/app_name"]
}
flavorStag {
dimension "buildTypes"
applicationIdSuffix ".stag"
manifestPlaceholders = [flavorName: "@string/app_name_stag"]
}
flavorTrain {
dimension "buildTypes"
applicationIdSuffix ".train"
manifestPlaceholders = [flavorName: "@string/app_name_train"]
}
}
buildTypes {
debug {
minifyEnabled false
debuggable true
buildConfigField "String", "BASE_URL", "\"http://192.168.153.91:6176\""
signingConfig signingConfigs.release
}
/* all of local* build variants will point to 192.168.xxx.xxx ips */ androidResources
localDev {
minifyEnabled false
debuggable true
buildConfigField "String", "BASE_URL", "\"http://192.168.149.229:6180/bhp/api/v1/\""
signingConfig signingConfigs.debug
}
localTest {
minifyEnabled false
debuggable true
buildConfigField "String", "BASE_URL", "\"http://192.168.149.229:6181/bhp/api/v1/test/\""
signingConfig signingConfigs.debug
}
localStaging {
minifyEnabled false
debuggable true
buildConfigField "String", "BASE_URL", "\"http://192.168.149.221:6182/bhp/api/v1/staging/\""
signingConfig signingConfigs.release
}
localProduction {
minifyEnabled false
debuggable true
buildConfigField "String", "BASE_URL", "\"http://192.168.149.221:6183/bhp/api/v1/prod/\""
signingConfig signingConfigs.release
}