exoPlayer : A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

using the latest version of exoplayer plugin, we get this error:

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.tasks.Workers$ActionFacade
Android resource linking failed
/Users/agent04/.gradle/caches/transforms-2/files-2.1/42f4abcd1335f10590e79520ce40d264/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

I’m not familiar with this plugin (there are over 1200 plugins on the list now), but here are a couple tips:

  • make sure everything is up to date in your project - are you using Cordova 11?

  • Check that you’re using the latest version of the plugin. I see they updated it 45 minutes ago!

hello sir.

it’s our plugin, it appear that the latest version of Google exoPlayer (2.17.1) require something in gradle. downgrading the plugin to 2.9.6 work, but a lot of feature aren’t exist. the error require maybe a gradle upgrade.

/Users/agent04/.gradle/caches/transforms-2/files-2.1/42f4abcd1335f10590e79520ce40d264/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

The version of Gradle is set by Cordova. It is currently 7.4.2, which is the latest.