Quote from llazzari on December 21, 2023, 7:22 pmHo questo errore durante la compilazione dell'app per android
UserError: FAILURE: Build failed with an exception.* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
See log for full details.
Ho questo errore durante la compilazione dell'app per android
UserError: FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
See log for full details.
Quote from luishp on December 22, 2023, 10:59 am@llazzari are you having the problem when compiling with VisualNEO Web or within VoltBuilder itself?
Please note that you need to fill all the required Mobile Platform Options. Check the attached image.
Regards.
@llazzari are you having the problem when compiling with VisualNEO Web or within VoltBuilder itself?
Please note that you need to fill all the required Mobile Platform Options. Check the attached image.
Regards.
Quote from llazzari on December 22, 2023, 6:34 pmThanks for the information, but there are other problems. I compiled the same app last week and everything was fine, now it seems like nothing works anymore.
this is the error log.
2023-12-22 16:17:21,226 - #1 SMP Debian 5.10.191-1 (2023-08-16)2023-12-22 16:17:21,332 - app.framework: cordova2023-12-22 16:17:21,332 - Verbose logging is off. Change this in voltbuilder.json2023-12-22 16:17:21,333 - VoltBuilder run started at 2023-12-22 16:17:21.3332242023-12-22 16:17:21,333 - Plan: Free2023-12-22 16:17:21,333 - Builds restricted to Android Debug on Free Plan.See https://volt.build/plan/ to get a 15 day trial which can build for iOS.2023-12-22 16:17:21,333 - Preflight Check2023-12-22 16:17:21,334 - adding android to xmlns2023-12-22 16:17:21,335 - id is com.prodtooto.luca2023-12-22 16:17:22,214 - Output: Creating a new cordova project.2023-12-22 16:17:32,041 - Output: Using cordova-fetch for cordova-android@11.0.0Adding android project...android-targetSdkVersion should be greater than or equal to 32.Creating Cordova project for the Android platform:Path: platforms/androidPackage: com.prodtooto.lucaName: GRUPPO ABActivity: MainActivityAndroid Target SDK: android-32Android Compile SDK: 30Subproject Path: CordovaLibSubproject Path: appAndroid project created with cordova-android@11.0.0Platform 'android' found in config.xml... Migrating it to package.json2023-12-22 16:17:33,745 - Output:Cordova Packages:cli: 12.0.0common: 5.0.0create: 5.0.0lib: 12.0.1common: 5.0.0fetch: 4.0.0serve: 4.0.1Project Installed Platforms:android: 11.0.0Project Installed Plugins:Environment:OS: Ubuntu 22.04.3 LTS (linux 5.10.0-25-cloud-amd64) x64Node: v18.17.1npm: 10.1.0android Environment:android:Loading local repository...[========= ] 25% Loading local repository...[========= ] 25% Fetch remote repository...[=======================================] 100% Fetch remote repository...Available Android targets:----------id: 1 or "android-29"Name: Android API 29Type: PlatformAPI level: 29Revision: 5----------id: 2 or "android-30"Name: Android API 30Type: PlatformAPI level: 30Revision: 3----------id: 3 or "android-31"Name: Android API 31Type: PlatformAPI level: 31Revision: 1----------id: 4 or "android-32"Name: Android API 32Type: PlatformAPI level: 32Revision: 1----------id: 5 or "android-33"Name: Android API 33, extension level 3Type: PlatformAPI level: 33Revision: 3Project Setting Files:config.xml:<?xml version="1.0" encoding="UTF-8" ?><widget xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android"id="com.prodtooto.luca"version="1.0"><name short="GS AB">GRUPPO AB</name><author email="llazzari@virgilio.it" href="https://lucca.com">LUCA</author><icon src="img/ICONA100.png" width="100" height="100" /><content src="index.html"/><access origin="*"/><platform name="android"/><preference name="orientation" value="default" /><preference name="DisallowOverscroll" value="true" /><engine name="android" spec="11.0.0" /><preference name="android-targetSdKVersion" value="30"/><preference name="android-minSdKVersion" value="22"/><allow-intent href="http://*/*" /><allow-intent href="https://*/*" /><allow-intent href="tel:*" /><allow-intent href="sms:*" /><allow-intent href="mailto:*" /><allow-intent href="geo:*" /><platform name="android"><allow-intent href="market:*" /></platform></widget>package.json:--- Start of Cordova JSON Snippet ---{"platforms": ["android"]}--- End of Cordova JSON Snippet ---2023-12-22 16:17:51,415 - Output: Checking Java JDK and Android SDK versionsANDROID_HOME=/opt/android-sdk (recommended setting)ANDROID_SDK_ROOT=/opt/android-sdk (DEPRECATED)Using Android SDK: /opt/android-sdkReading build config file: /build.jsonReading the keystore from: /agent/voltbuilder/platforms/assets/debug.p12Starting a Gradle Daemon, 4 incompatible Daemons could not be reused, use --status for details> Task :wrapperDeprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warningsBUILD SUCCESSFUL in 4s1 actionable task: 1 executedSubproject Path: CordovaLibSubproject Path: appStarting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details> Task :app:preBuild UP-TO-DATE> Task :app:preDebugBuild UP-TO-DATE> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE> Task :CordovaLib:preBuild UP-TO-DATE> Task :CordovaLib:preDebugBuild UP-TO-DATE> Task :CordovaLib:compileDebugAidl NO-SOURCE> Task :app:compileDebugAidl NO-SOURCE> Task :CordovaLib:packageDebugRenderscript> Task :app:compileDebugRenderscript NO-SOURCE> Task :app:generateDebugBuildConfig> Task :app:javaPreCompileDebug> Task :CordovaLib:writeDebugAarMetadata> Task :app:generateDebugResValues> Task :app:generateDebugResources> Task :app:checkDebugAarMetadata FAILED> Task :CordovaLib:compileDebugRenderscriptThe RenderScript APIs are deprecated. They will be removed in Android Gradle plugin 9.0. See the following link for a guide to migrate from RenderScript: https://developer.android.com/guide/topics/renderscript/migrateFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:checkDebugAarMetadata'.> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction> 8 issues were found when checking AAR metadata:1. Dependency 'androidx.appcompat:appcompat:1.4.2' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).2. Dependency 'androidx.core:core-splashscreen:1.0.0-rc01' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).3. Dependency 'androidx.appcompat:appcompat-resources:1.4.2' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).4. Dependency 'androidx.emoji2:emoji2-views-helper:1.0.0' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).5. Dependency 'androidx.emoji2:emoji2:1.0.0' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).6. Dependency 'androidx.core:core:1.7.0' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).7. Dependency 'androidx.lifecycle:lifecycle-process:2.4.0' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).8. Dependency 'androidx.lifecycle:lifecycle-runtime:2.4.0' requires libraries and applications thatdepend on it to compile against version 31 or later of theAndroid APIs.:app is currently compiled against android-30.Recommended action: Update this project to use a newer compileSdkVersionof at least 31, for example 32.Note that updating a library or application's compileSdkVersion (whichallows newer APIs to be used) can be done separately from updatingtargetSdkVersion (which opts the app in to new runtime behavior) andminSdkVersion (which determines which devices the app can be installedon).* 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.orgDeprecated 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.See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warningsBUILD FAILED in 10s7 actionable tasks: 7 executedCommand failed with exit code 1: /platforms/android/gradlew cdvBuildDebug -b /platforms/android/build.gradle2023-12-22 16:17:51,421 - A failure occurred while executing CheckAarMetadataWorkAction.1. Make sure all plugins are up to date (see end of log)2. Check for obsolete plugins: https://volt.build/docs/android_12/#obsolete-plugins3. Look for plugin conflicts4. Check plugin engine requirementsCheck the log for complete information.2023-12-22 16:17:51,421 - Build failed 4be58634-53f2-4174-933c-6155fab5cca82023-12-22 16:17:52,781 - Output: Package Current Wanted Latest Location Depended bycordova-android 11.0.0 11.0.0 12.0.1 node_modules/cordova-android 4be58634-53f2-4174-933c-6155fab5cca8Thank you
Thanks for the information, but there are other problems. I compiled the same app last week and everything was fine, now it seems like nothing works anymore.
this is the error log.
Thank you
Quote from luishp on December 23, 2023, 12:49 pm@llazzari have you seen this?:Recommended action: Update this project to use a newer compileSdkVersion of at least 31, for example 32.
Recommended action: Update this project to use a newer compileSdkVersion of at least 31, for example 32.