Cordova-plugin-file 8.0.0

UserError: CordovaError: Version of installed plugin: “cordova-plugin-file@7.0.0” does not satisfy dependency plugin requirement “cordova-plugin-file@^8.0.0”. Try --force to use installed plugin as dependency.

In config.xml I tried with plugin name=“cordova-plugin-file” and with plugin name=“cordova-plugin-file” spec=“^8.0.0” but I always get the same error.

How can I get it to use cordova-plugin-file 8.0.0?

Thank you very much.

Which plugin is having this issue?

This plugins:
cordova-plugin-media-capture
cordova-plugin-video-editor

cordova-plugin-media-capture does indeed have a dependency on cordova-plugin-file@8.0.0. cordova-plugin-video-editor doesn’t have any dependencies from what I can see.

You’ve likely got another plugin that’s depending on cordova-plugin-file@7.0.0 which is causing the issue. The only real option would be to look at each plugin’s dependencies one by one. If you post your config.xml we can help with this.

Ok, here is my log (part 1/2):

2023-09-15 12:13:13,431 - #1 SMP Debian 5.10.149-2 (2022-10-21)
2023-09-15 12:13:13,715 - app.framework: cordova
2023-09-15 12:13:13,717 - Verbose logging is off. Change this in voltbuilder.json
2023-09-15 12:13:13,717 - VoltBuilder run started at 2023-09-15 12:13:13.717473
2023-09-15 12:13:13,717 - Plan: Indy
2023-09-15 12:13:13,717 - Preflight Check
2023-09-15 12:13:13,718 - adding android to xmlns
2023-09-15 12:13:13,720 - id is com.hhacaman
2023-09-15 12:13:14,586 - Output: Creating a new cordova project.

2023-09-15 12:13:53,227 - Output: Using cordova-fetch for cordova-android
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: com.hhacaman
	Name: HHACAMAN
	Activity: MainActivity
	Android Target SDK: android-33
	Android Compile SDK: 33
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@12.0.1
Plugin 'cordova-plugin-firebasex' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-media' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-media-capture' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-video-editor' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-texttospeech' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-globalization' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-network-information' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-cleartext' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-camera' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-geolocation' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-badge' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-statusbar' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-appversion' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-inappbrowser' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-dialogs' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-androidx-adapter' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-file' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-x-socialsharing-android12' found in config.xml... Migrating it to package.json
Plugin 'cordova-plugin-splashscreen' found in config.xml... Migrating it to package.json
Discovered plugin "cordova-plugin-firebasex". Adding it to the project
Installing "cordova-plugin-firebasex" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-firebasex to package.json
Discovered plugin "cordova-plugin-media". Adding it to the project
Installing "cordova-plugin-media" for android
Installing "cordova-plugin-file" for android
Subproject Path: CordovaLib
Subproject Path: app

The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

If this is a new application no changes are required.

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

to config.xml in order for the application to find previously stored files.
        
Adding cordova-plugin-media to package.json
Discovered plugin "cordova-plugin-media-capture". Adding it to the project
Installing "cordova-plugin-media-capture" for android
Plugin dependency "cordova-plugin-file@8.0.0" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on android.
Adding cordova-plugin-media-capture to package.json
Discovered plugin "cordova-plugin-video-editor". Adding it to the project
Installing "cordova-plugin-video-editor" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-video-editor to package.json
Discovered plugin "cordova-plugin-texttospeech". Adding it to the project
Installing "cordova-plugin-texttospeech" for android
Adding cordova-plugin-texttospeech to package.json
Discovered plugin "cordova-plugin-globalization". Adding it to the project
Installing "cordova-plugin-globalization" for android
Adding cordova-plugin-globalization to package.json
Discovered plugin "cordova-plugin-network-information". Adding it to the project
Installing "cordova-plugin-network-information" for android
Adding cordova-plugin-network-information to package.json
Discovered plugin "cordova-plugin-cleartext". Adding it to the project
Installing "cordova-plugin-cleartext" for android
Adding cordova-plugin-cleartext to package.json
Discovered plugin "cordova-plugin-camera". Adding it to the project
Installing "cordova-plugin-camera" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-camera to package.json
Discovered plugin "cordova-plugin-geolocation". Adding it to the project
Installing "cordova-plugin-geolocation" for android
Adding cordova-plugin-geolocation to package.json
Discovered plugin "cordova-plugin-badge". Adding it to the project
Installing "cordova-plugin-badge" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-badge to package.json
Discovered plugin "cordova-plugin-statusbar". Adding it to the project
Installing "cordova-plugin-statusbar" for android
Adding cordova-plugin-statusbar to package.json
Discovered plugin "cordova-plugin-appversion". Adding it to the project
Installing "cordova-plugin-appversion" for android
Adding cordova-plugin-appversion to package.json
Discovered plugin "cordova-plugin-inappbrowser". Adding it to the project
Installing "cordova-plugin-inappbrowser" for android
Adding cordova-plugin-inappbrowser to package.json
Discovered plugin "cordova-plugin-dialogs". Adding it to the project
Installing "cordova-plugin-dialogs" for android
Adding cordova-plugin-dialogs to package.json
Discovered plugin "cordova-plugin-androidx-adapter". Adding it to the project
Installing "cordova-plugin-androidx-adapter" for android
Adding cordova-plugin-androidx-adapter to package.json
Discovered plugin "cordova-plugin-x-socialsharing-android12". Adding it to the project
Installing "cordova-plugin-x-socialsharing-android12" for android
Installing "es6-promise-plugin" for android
Subproject Path: CordovaLib
Subproject Path: app
Adding cordova-plugin-x-socialsharing-android12 to package.json
Discovered plugin "cordova-plugin-splashscreen". Adding it to the project
Unmet project requirements for latest version of cordova-plugin-splashscreen:
    cordova-android (12.0.1 in project, >=3.6.0 <11.0.0 required)
Fetching highest version of cordova-plugin-splashscreen that this project supports: 6.0.1 (latest is 6.0.2)
Installing "cordova-plugin-splashscreen" for android
Adding cordova-plugin-splashscreen to package.json
cordova-plugin-androidx-adapter: Processed 67 source files in 1328ms
cordova-plugin-firebasex: Preparing Firebase on Android
cordova-plugin-firebasex: Updated colors.xml with accent color

2023-09-15 12:13:55,040 - 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: 12.0.1

Project Installed Plugins:

    cordova-plugin-androidx-adapter: 1.1.3
    cordova-plugin-appversion: 1.0.0
    cordova-plugin-badge: 0.8.9
    cordova-plugin-camera: 7.0.0
    cordova-plugin-cleartext: 1.0.0
    cordova-plugin-dialogs: 2.0.2
    cordova-plugin-file: 8.0.0
    cordova-plugin-firebasex: 16.1.0
    cordova-plugin-geolocation: 4.1.0
    cordova-plugin-globalization: 1.11.0
    cordova-plugin-inappbrowser: 5.0.0
    cordova-plugin-media-capture: 5.0.0
    cordova-plugin-media: 7.0.0
    cordova-plugin-network-information: 3.0.0
    cordova-plugin-splashscreen: 6.0.1
    cordova-plugin-statusbar: 3.0.0
    cordova-plugin-texttospeech: 0.1.1
    cordova-plugin-video-editor: 1.1.3
    cordova-plugin-x-socialsharing-android12: 6.0.5
    es6-promise-plugin: 4.2.2

Environment:

    OS: Ubuntu 22.04.2 LTS (linux 5.10.0-19-cloud-amd64) x64
    Node: v18.16.0
    npm: 9.7.1

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: 2


Project Setting Files:

    config.xml:
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" android-versionCode="1030000" id="com.hhacaman" ios-CFBundleVersion="103" version="103">

    <name>HHACAMAN</name>

    <description>
		Circulares Escolares
    </description>

    <author href="http://www.creatactil.com" email="info@creatactil.com">
        Creatactil S.L.
    </author>

    <preference name="permissions" value="none" />
    <preference name="orientation" value="portrait" />
	<preference name="fullscreen" value="false" />
    <preference name="target-device" value="universal" />
    <preference name="webviewbounce" value="true" />
    <preference name="prerendered-icon" value="true" />
	<preference name="detect-data-types" value="true" />
	<preference name="show-splash-screen-spinner" value="true" />
	<preference name="AutoHideSplashScreen" value="true" />
	<preference name="exit-on-suspend" value="false" />
    <preference name="android-minSdkVersion" value="22" />
	<preference name="android-targetSdkVersion" value="33" />
    <preference name="android-installLocation" value="auto" />
	<preference name="android-build-tool" value="gradle" />
	<preference name="stay-in-webview" value="true" />
	<preference name="ios-statusbarstyle" value="default" />
	<preference name="EnableViewportScale" value="true" />
	<preference name="MediaPlaybackRequiresUserAction" value="true" />
	<preference name="AllowInlineMediaPlayback" value="true" />
	<preference name="BackupWebStorage" value="cloud" />
	<preference name="TopActivityIndicator" value="gray" />
	<preference name="KeyboardDisplayRequiresUserAction" value="true" />
	<preference name="HideKeyboardFormAccessoryBar" value="true" />
	<preference name="SuppressesIncrementalRendering" value="true" />
	<preference name="SplashScreenDelay" value="3000" />
	<preference name="ErrorUrl" value="" />
	<preference name="KeepRunning" value="true" />
	<preference name="DisallowOverscroll" value="true" />
	<preference name="LoadingDialog" value=",Cargando....." /> 
	<preference name="LoadUrlTimeoutValue" value="20000" />
	<preference name="StatusBarOverlaysWebView" value="false" />
	<preference name="StatusBarStyle" value="lightcontent" />
	<preference name="SplashMaintainAspectRatio" value="true" />
	<preference name="AndroidXEnabled" value="true" />
	<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/splashTemplate.png" />
	<preference name="AndroidWindowSplashScreenBackground" value="#000000" />

	<platform name="ios">
	
	    <engine name="ios" spec="6.2.0" />

		<preference name="deployment-target" value="11.0" />
		
		<feature name="StatusBar">
			<param name="ios-package" value="CDVStatusBar" onload="true" />
		</feature>		
	
		<feature name="SocialSharing">
			<param name="ios-package" value="SocialSharing" />
		</feature>
		
	</platform>
	
	<platform name="android">
	
		<engine name="android" spec="12.0.0" />
		
		<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application/activity">
			<application android:exported="true" />
		</edit-config>

		<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/uses-permission">
			<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
			<uses-permission android:name="android.permission.CAMERA" />
		</edit-config>
		
		<feature name="SocialSharing">
			<param name="android-package" value="nl.xservices.plugins.SocialSharing" />
		</feature>

		<resource-file src="google-services.json" target="/app/google-services.json" />
		
	</platform>
	
	
	
	<plugin name="cordova-plugin-firebasex" spec="^16.0.0">
        <variable name="SETUP_RECAPTCHA_VERIFICATION" value="true" />
        <variable name="FIREBASE_ANALYTICS_COLLECTION_ENABLED" value="false" />
        <variable name="FIREBASE_PERFORMANCE_COLLECTION_ENABLED" value="false" />
        <variable name="FIREBASE_CRASHLYTICS_COLLECTION_ENABLED" value="false" />
        <variable name="FIREBASE_FCM_AUTOINIT_ENABLED" value="false" />
        <variable name="ANDROID_ICON_ACCENT" value="#FF11FF11" />
        <variable name="ANDROID_FIREBASE_PERFORMANCE_MONITORING" value="false" />
        <variable name="IOS_STRIP_DEBUG" value="true" />
        <variable name="IOS_ENABLE_APPLE_SIGNIN" value="false" />
        <variable name="IOS_USE_PRECOMPILED_FIRESTORE_POD" value="false" />
    </plugin>

	
	

	<plugin name="cordova-plugin-media" />
	<plugin name="cordova-plugin-media-capture">
	  <param name="CAMERA_USAGE_DESCRIPTION" value="Acesso a la camara para grabar v&#237;deo." />
      <param name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="Acesso a la camara para compartir v&#237;deo." />
    </plugin>
	<plugin name="cordova-plugin-video-editor" />
	<plugin name="cordova-plugin-texttospeech" />
	<plugin name="cordova-plugin-globalization" />
	<plugin name="cordova-plugin-network-information" />	
	<plugin name="cordova-plugin-cleartext" />
	<plugin name="cordova-plugin-camera" />
	<plugin name="cordova-plugin-geolocation" />
	<plugin name="cordova-plugin-badge" />
	<plugin name="cordova-plugin-statusbar" />
	<plugin name="cordova-plugin-appversion" />
	<plugin name="cordova-plugin-inappbrowser" />
	<plugin name="cordova-plugin-dialogs" />
	<plugin name="cordova-plugin-androidx-adapter" />
	<plugin name="cordova-plugin-file" />
	<plugin name="cordova-plugin-x-socialsharing-android12" /> 
	<plugin name="cordova-plugin-splashscreen" />
	
	<platform name="ios">
	  <edit-config target="NSLocationAlwaysUsageDescription" file="*-Info.plist" mode="overwrite">
		<string>Active la geolocalizaci&#243;n para sus rutas</string>
	  </edit-config>
	  <edit-config target="NSLocationWhenInUseUsageDescription" file="*-Info.plist" mode="overwrite">
		<string>Active la geolocalizaci&#243;n para sus rutas</string>
	  </edit-config>
	  	  <edit-config target="NSCameraUsageDescription" file="*-Info.plist" mode="overwrite">
		<string>Active su camara para hacer fotos &#243; grabar v&#237;deos</string>
	  </edit-config>
	  <edit-config target="NSPhotoLibraryUsageDescription" file="*-Info.plist" mode="overwrite">
		<string>Active su camara para hacer fotos &#243; grabar v&#237;deos</string>
	  </edit-config>
	  <edit-config target="NSMicrophoneUsageDescription" file="*-Info.plist" mode="overwrite">
		<string>Active su micr&#243;fono para grabar audios y v&#237;deos</string>
	  </edit-config>
	</platform>
	
	<allow-navigation href="*" />
    <access origin="*" />
	
	<allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
	<allow-intent href="whatsapp:*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <platform name="android">
        <allow-intent href="market:*" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
    </platform>

<content src="index.html" /></widget>

    package.json:
--- Start of Cordova JSON Snippet ---
{
  "plugins": {
    "cordova-plugin-firebasex": {
      "SETUP_RECAPTCHA_VERIFICATION": "true",
      "FIREBASE_ANALYTICS_COLLECTION_ENABLED": "false",
      "FIREBASE_PERFORMANCE_COLLECTION_ENABLED": "false",
      "FIREBASE_CRASHLYTICS_COLLECTION_ENABLED": "false",
      "FIREBASE_FCM_AUTOINIT_ENABLED": "false",
      "ANDROID_ICON_ACCENT": "#FF11FF11",
      "ANDROID_FIREBASE_PERFORMANCE_MONITORING": "false",
      "IOS_STRIP_DEBUG": "true",
      "IOS_ENABLE_APPLE_SIGNIN": "false",
      "IOS_USE_PRECOMPILED_FIRESTORE_POD": "false",
      "ANDROID_PLAY_SERVICES_TAGMANAGER_VERSION": "18.0.2",
      "ANDROID_PLAY_SERVICES_AUTH_VERSION": "20.5.0",
      "ANDROID_FIREBASE_ANALYTICS_VERSION": "21.2.2",
      "ANDROID_FIREBASE_MESSAGING_VERSION": "23.1.2",
      "ANDROID_FIREBASE_CONFIG_VERSION": "21.4.0",
      "ANDROID_FIREBASE_PERF_VERSION": "20.3.2",
      "ANDROID_FIREBASE_AUTH_VERSION": "22.0.0",
      "ANDROID_FIREBASE_INAPPMESSAGING_VERSION": "20.3.2",
      "ANDROID_FIREBASE_FIRESTORE_VERSION": "24.6.0",
      "ANDROID_FIREBASE_FUNCTIONS_VERSION": "20.3.0",
      "ANDROID_FIREBASE_IID_VERSION": "21.1.0",
      "ANDROID_FIREBASE_INSTALLATIONS_VERSION": "17.1.3",
      "ANDROID_FIREBASE_CRASHLYTICS_VERSION": "18.3.7",
      "ANDROID_FIREBASE_CRASHLYTICS_NDK_VERSION": "18.3.7",
      "ANDROID_GSON_VERSION": "2.9.0",
      "ANDROID_FIREBASE_PERF_GRADLE_PLUGIN_VERSION": "1.4.2",
      "ANDROID_GRPC_OKHTTP": "1.46.0"
    },
    "cordova-plugin-media": {},
    "cordova-plugin-media-capture": {},
    "cordova-plugin-video-editor": {},
    "cordova-plugin-texttospeech": {},
    "cordova-plugin-globalization": {},
    "cordova-plugin-network-information": {},
    "cordova-plugin-cleartext": {},
    "cordova-plugin-camera": {
      "ANDROIDX_CORE_VERSION": "1.6.+"
    },
    "cordova-plugin-geolocation": {
      "GPS_REQUIRED": "true"
    },
    "cordova-plugin-badge": {},
    "cordova-plugin-statusbar": {},
    "cordova-plugin-appversion": {},
    "cordova-plugin-inappbrowser": {},
    "cordova-plugin-dialogs": {},
    "cordova-plugin-androidx-adapter": {},
    "cordova-plugin-file": {},
    "cordova-plugin-x-socialsharing-android12": {},
    "cordova-plugin-splashscreen": {}
  },
  "platforms": [
    "android"
  ]
}
--- End of Cordova JSON Snippet ---

Part 2/2

2023-09-15 12:13:56,610 - Output: 2023-09-15T12:13:55.237Z cordova-res Paths: (config: '/config.xml') (resources dir: 'resources')
2023-09-15T12:13:55.249Z cordova-res:platform Running android platform with options: {
  'adaptive-icon': {
    icon: { sources: [Array] },
    foreground: { sources: [Array] },
    background: { sources: [Array] }
  },
  icon: {
    sources: [
      '/resources/iconTemplate.png'
    ]
  },
  splash: {
    sources: [
      '/resources/splashTemplate.png'
    ]
  }
}
2023-09-15T12:13:55.250Z cordova-res:platform Building adaptive-icon resources
2023-09-15T12:13:55.250Z cordova-res:platform Building icon resources for android platform
2023-09-15T12:13:55.259Z cordova-res:image Source image for icon: {
  format: 'png',
  size: 33159,
  width: 1024,
  height: 1024,
  space: 'srgb',
  channels: 3,
  depth: 'uchar',
  density: 96,
  isProgressive: false,
  background: { r: 0, g: 0, b: 0 },
  hasProfile: true,
  hasAlpha: false,
  icc: <Buffer 00 00 02 a0 6c 63 6d 73 04 30 00 00 6d 6e 74 72 52 47 42 20 58 59 5a 20 07 e5 00 03 00 09 00 0b 00 3a 00 0d 61 63 73 70 4d 53 46 54 00 00 00 00 00 00 ... 622 more bytes>
}
2023-09-15T12:13:55.259Z cordova-res:platform Using '/resources/iconTemplate.png' for icon source image for android
2023-09-15T12:13:55.261Z cordova-res:image Generating 'resources/android/icon/drawable-mdpi-icon.png' (48x48) fit='cover' position='center'
2023-09-15T12:13:55.265Z cordova-res:image Generating 'resources/android/icon/drawable-xhdpi-icon.png' (96x96) fit='cover' position='center'
2023-09-15T12:13:55.266Z cordova-res:image Generating 'resources/android/icon/drawable-xxhdpi-icon.png' (144x144) fit='cover' position='center'
2023-09-15T12:13:55.268Z cordova-res:image Generating 'resources/android/icon/drawable-hdpi-icon.png' (72x72) fit='cover' position='center'
2023-09-15T12:13:55.268Z cordova-res:image Generating 'resources/android/icon/drawable-xxxhdpi-icon.png' (192x192) fit='cover' position='center'
2023-09-15T12:13:55.269Z cordova-res:image Generating 'resources/android/icon/drawable-ldpi-icon.png' (36x36) fit='cover' position='center'
2023-09-15T12:13:55.349Z cordova-res:image Source file missing: resources/android/icon-foreground.png
2023-09-15T12:13:55.350Z cordova-res:image Source file missing: resources/android/icon-foreground.jpg
2023-09-15T12:13:55.350Z cordova-res:image Source file missing: resources/android/icon-foreground.jpeg
2023-09-15T12:13:55.351Z cordova-res:platform Error with adaptive icons: Error
    at new BaseError (/usr/lib/node_modules/cordova-res/dist/error.js:8:22)
    at new ResolveSourceImageError (/usr/lib/node_modules/cordova-res/dist/error.js:45:9)
    at Object.resolveSourceImage (/usr/lib/node_modules/cordova-res/dist/image.js:31:11)
    at async generateAdaptiveIconResourcesPortion (/usr/lib/node_modules/cordova-res/dist/platform.js:190:20)
    at async generateAdaptiveIconResources (/usr/lib/node_modules/cordova-res/dist/platform.js:148:74)
    at async safelyGenerateAdaptiveIconResources (/usr/lib/node_modules/cordova-res/dist/platform.js:128:16)
    at async Object.run (/usr/lib/node_modules/cordova-res/dist/platform.js:24:28)
    at async AsyncFunction.CordovaRes [as run] (/usr/lib/node_modules/cordova-res/dist/index.js:35:36)
    at async AsyncFunction.runCommandLine (/usr/lib/node_modules/cordova-res/dist/index.js:93:28) {
  errors: [],
  code: 'BAD_SOURCES'
}
2023-09-15T12:13:55.351Z cordova-res:platform Building icon resources for android platform
2023-09-15T12:13:55.352Z cordova-res:image Source image for icon: {
  format: 'png',
  size: 33159,
  width: 1024,
  height: 1024,
  space: 'srgb',
  channels: 3,
  depth: 'uchar',
  density: 96,
  isProgressive: false,
  background: { r: 0, g: 0, b: 0 },
  hasProfile: true,
  hasAlpha: false,
  icc: <Buffer 00 00 02 a0 6c 63 6d 73 04 30 00 00 6d 6e 74 72 52 47 42 20 58 59 5a 20 07 e5 00 03 00 09 00 0b 00 3a 00 0d 61 63 73 70 4d 53 46 54 00 00 00 00 00 00 ... 622 more bytes>
}
2023-09-15T12:13:55.352Z cordova-res:platform Using '/resources/iconTemplate.png' for icon source image for android
2023-09-15T12:13:55.353Z cordova-res:image Generating 'resources/android/icon/drawable-ldpi-icon.png' (36x36) fit='cover' position='center'
2023-09-15T12:13:55.353Z cordova-res:image Generating 'resources/android/icon/drawable-mdpi-icon.png' (48x48) fit='cover' position='center'
2023-09-15T12:13:55.357Z cordova-res:image Generating 'resources/android/icon/drawable-hdpi-icon.png' (72x72) fit='cover' position='center'
2023-09-15T12:13:55.357Z cordova-res:image Generating 'resources/android/icon/drawable-xhdpi-icon.png' (96x96) fit='cover' position='center'
2023-09-15T12:13:55.358Z cordova-res:image Generating 'resources/android/icon/drawable-xxhdpi-icon.png' (144x144) fit='cover' position='center'
2023-09-15T12:13:55.358Z cordova-res:image Generating 'resources/android/icon/drawable-xxxhdpi-icon.png' (192x192) fit='cover' position='center'
2023-09-15T12:13:55.447Z cordova-res:platform Building splash resources for android platform
2023-09-15T12:13:55.448Z cordova-res:image Source image for splash: {
  format: 'png',
  size: 217919,
  width: 2732,
  height: 2732,
  space: 'srgb',
  channels: 4,
  depth: 'uchar',
  density: 96,
  isProgressive: false,
  hasProfile: false,
  hasAlpha: true
}
2023-09-15T12:13:55.448Z cordova-res:platform Using '/resources/splashTemplate.png' for splash source image for android
2023-09-15T12:13:55.449Z cordova-res:image Generating 'resources/android/splash/drawable-land-ldpi-screen.png' (320x240) fit='cover' position='center'
2023-09-15T12:13:55.452Z cordova-res:image Generating 'resources/android/splash/drawable-land-mdpi-screen.png' (480x320) fit='cover' position='center'
2023-09-15T12:13:55.453Z cordova-res:image Generating 'resources/android/splash/drawable-land-hdpi-screen.png' (800x480) fit='cover' position='center'
2023-09-15T12:13:55.458Z cordova-res:image Generating 'resources/android/splash/drawable-land-xhdpi-screen.png' (1280x720) fit='cover' position='center'
2023-09-15T12:13:55.458Z cordova-res:image Generating 'resources/android/splash/drawable-land-xxhdpi-screen.png' (1600x960) fit='cover' position='center'
2023-09-15T12:13:55.459Z cordova-res:image Generating 'resources/android/splash/drawable-land-xxxhdpi-screen.png' (1920x1280) fit='cover' position='center'
2023-09-15T12:13:55.459Z cordova-res:image Generating 'resources/android/splash/drawable-port-ldpi-screen.png' (240x320) fit='cover' position='center'
2023-09-15T12:13:55.459Z cordova-res:image Generating 'resources/android/splash/drawable-port-mdpi-screen.png' (320x480) fit='cover' position='center'
2023-09-15T12:13:55.462Z cordova-res:image Generating 'resources/android/splash/drawable-port-hdpi-screen.png' (480x800) fit='cover' position='center'
2023-09-15T12:13:55.462Z cordova-res:image Generating 'resources/android/splash/drawable-port-xhdpi-screen.png' (720x1280) fit='cover' position='center'
2023-09-15T12:13:55.463Z cordova-res:image Generating 'resources/android/splash/drawable-port-xxhdpi-screen.png' (960x1600) fit='cover' position='center'
2023-09-15T12:13:55.463Z cordova-res:image Generating 'resources/android/splash/drawable-port-xxxhdpi-screen.png' (1280x1920) fit='cover' position='center'
Generated 18 resources for Android
2023-09-15T12:13:56.575Z cordova-res:cordova:config Orientation preference: undefined
2023-09-15T12:13:56.576Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='ldpi']" ])
2023-09-15T12:13:56.576Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='mdpi']" ])
2023-09-15T12:13:56.577Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='hdpi']" ])
2023-09-15T12:13:56.577Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='xhdpi']" ])
2023-09-15T12:13:56.577Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='xxhdpi']" ])
2023-09-15T12:13:56.577Z cordova-res:cordova:config Creating 'icon' node (not found by xpaths: [ "icon[@src][@density='xxxhdpi']" ])
2023-09-15T12:13:56.578Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-ldpi']" ])
2023-09-15T12:13:56.578Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-mdpi']" ])
2023-09-15T12:13:56.578Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-hdpi']" ])
2023-09-15T12:13:56.579Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-xhdpi']" ])
2023-09-15T12:13:56.579Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-xxhdpi']" ])
2023-09-15T12:13:56.579Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='land-xxxhdpi']" ])
2023-09-15T12:13:56.579Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-ldpi']" ])
2023-09-15T12:13:56.579Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-mdpi']" ])
2023-09-15T12:13:56.579Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-hdpi']" ])
2023-09-15T12:13:56.579Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-xhdpi']" ])
2023-09-15T12:13:56.580Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-xxhdpi']" ])
2023-09-15T12:13:56.580Z cordova-res:cordova:config Creating 'splash' node (not found by xpaths: [ "splash[@density='port-xxxhdpi']" ])
Wrote to config.xml

2023-09-15 12:14:18,623 - Output: The "<splash>" tags were detected and are no longer supported. Please migrate to the "preference" tag "AndroidWindowSplashScreenAnimatedIcon".
cordova-plugin-androidx-adapter: Processed 61 source files in 1435ms
cordova-plugin-firebasex: Preparing Firebase on Android
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: /certificates/hhacaman.keystore
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.

See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 5s
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

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.
-----------
* Where:
Script '/platforms/android/cordova-plugin-video-editor/hhacaman-build.gradle' line: 8

* What went wrong:
A problem occurred evaluating script.
> Could not find method compile() for arguments [com.github.ergovia-mobile:android-transcoder:v0.1.10R_ergovia] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

* 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.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':app'.
> compileSdkVersion is not specified. Please add it to build.gradle

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

See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 13s
Command failed with exit code 1: /platforms/android/gradlew -b /platforms/android/build.gradle cdvBuildRelease

2023-09-15 12:14:18,631 - FAILURE: Build completed with 2 failures.
Gradle error. See log for more information.
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-plugins
3. Look for plugin conflicts
2023-09-15 12:14:18,631 - Build failed 079edc82-33d8-471c-8e4c-72188fea0a5d
2023-09-15 12:14:20,818 - Output: Package                      Current  Wanted  Latest  Location                                  Depended by
cordova-plugin-splashscreen    6.0.1   6.0.2   6.0.2  node_modules/cordova-plugin-splashscreen  079edc82-33d8-471c-8e4c-72188fea0a5d

Here is the problem:

The issue is that cordova-plugin-video-editor - npm has not been updated in 6 years. There are over 90 open issues in the project repo seeing very little movement. However, there is one closed issue with the problem you’re having: Build keeps failing · Issue #183 · jbavari/cordova-plugin-video-editor · GitHub - I would reach out to the person who opened this issue and see if they found a solution.

We also do provide extended support for Enterprise customers. You can reach out to support@volt.build if this is something you’d be interested in.

1 Like

Thank you very much for the help, I have opted to use “cordova-plugin-video-editor-fixed”

Problem solved :wink: Thank you very much!