VoltBuilder compiling - Forum

Forum Navigation
You need to log in to create posts and topics.

VoltBuilder compiling

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.

@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.

Uploaded files:
  • You need to login to have access to uploads.

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.

 

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: cordova
2023-12-22 16:17:21,332 - Verbose logging is off. Change this in voltbuilder.json
2023-12-22 16:17:21,333 - VoltBuilder run started at 2023-12-22 16:17:21.333224
2023-12-22 16:17:21,333 - Plan: Free
2023-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 Check
2023-12-22 16:17:21,334 - adding android to xmlns
2023-12-22 16:17:21,335 - id is com.prodtooto.luca
2023-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.0
Adding android project...
android-targetSdkVersion should be greater than or equal to 32.
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.prodtooto.luca
Name: GRUPPO  AB
Activity: MainActivity
Android Target SDK: android-32
Android Compile SDK: 30
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@11.0.0
Platform 'android' found in config.xml... Migrating it to package.json
2023-12-22 16:17:33,745 - Output:
Cordova Packages:
    cli: 12.0.0
        common: 5.0.0
        create: 5.0.0
        lib: 12.0.1
            common: 5.0.0
            fetch: 4.0.0
            serve: 4.0.1
Project Installed Platforms:
    android: 11.0.0
Project Installed Plugins:
Environment:
    OS: Ubuntu 22.04.3 LTS (linux 5.10.0-25-cloud-amd64) x64
    Node: v18.17.1
    npm: 10.1.0
android 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 29
     Type: Platform
     API level: 29
     Revision: 5
----------
id: 2 or "android-30"
     Name: Android API 30
     Type: Platform
     API level: 30
     Revision: 3
----------
id: 3 or "android-31"
     Name: Android API 31
     Type: Platform
     API level: 31
     Revision: 1
----------
id: 4 or "android-32"
     Name: Android API 32
     Type: Platform
     API level: 32
     Revision: 1
----------
id: 5 or "android-33"
     Name: Android API 33, extension level 3
     Type: Platform
     API level: 33
     Revision: 3
Project 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 versions
ANDROID_HOME=/opt/android-sdk (recommended setting)
ANDROID_SDK_ROOT=/opt/android-sdk (DEPRECATED)
Using Android SDK: /opt/android-sdk
Reading build config file: /build.json
Reading the keystore from: /agent/voltbuilder/platforms/assets/debug.p12
Starting a Gradle Daemon, 4 incompatible Daemons could not be reused, use --status for details
> Task :wrapper
Deprecated 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.
BUILD SUCCESSFUL in 4s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting 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:compileDebugRenderscript
The 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/migrate
FAILURE: 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 that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
       2.  Dependency 'androidx.core:core-splashscreen:1.0.0-rc01' requires libraries and applications that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
       3.  Dependency 'androidx.appcompat:appcompat-resources:1.4.2' requires libraries and applications that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
       4.  Dependency 'androidx.emoji2:emoji2-views-helper:1.0.0' requires libraries and applications that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
       5.  Dependency 'androidx.emoji2:emoji2:1.0.0' requires libraries and applications that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
       6.  Dependency 'androidx.core:core:1.7.0' requires libraries and applications that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
       7.  Dependency 'androidx.lifecycle:lifecycle-process:2.4.0' requires libraries and applications that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
       8.  Dependency 'androidx.lifecycle:lifecycle-runtime:2.4.0' requires libraries and applications that
           depend on it to compile against version 31 or later of the
           Android APIs.
           :app is currently compiled against android-30.
           Recommended action: Update this project to use a newer compileSdkVersion
           of at least 31, for example 32.
           Note that updating a library or application's compileSdkVersion (which
           allows newer APIs to be used) can be done separately from updating
           targetSdkVersion (which opts the app in to new runtime behavior) and
           minSdkVersion (which determines which devices the app can be installed
           on).
* 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 10s
7 actionable tasks: 7 executed
Command failed with exit code 1: /platforms/android/gradlew cdvBuildDebug -b /platforms/android/build.gradle
2023-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)
3. Look for plugin conflicts
4. Check plugin engine requirements
Check the log for complete information.
2023-12-22 16:17:51,421 - Build failed 4be58634-53f2-4174-933c-6155fab5cca8
2023-12-22 16:17:52,781 - Output: Package          Current  Wanted  Latest  Location                      Depended by
cordova-android   11.0.0  11.0.0  12.0.1  node_modules/cordova-android  4be58634-53f2-4174-933c-6155fab5cca8

Thank you

@llazzari have you seen this?:
Recommended action: Update this project to use a newer compileSdkVersion of at least 31, for example 32.