Layout constraint library missing

I’m trying to update my client’s android API to 35 in 2022.3.49f1, and I’m getting these errors:

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
   > Android resource linking failed
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintHeight_percent (aka com.xxxxx.elabcs.play:layout_constraintHeight_percent) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintDimensionRatio (aka com.xxxxx.elabcs.play:layout_constraintDimensionRatio) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.xxxxx.elabcs.play:layout_constraintBottom_toBottomOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintVertical_bias (aka com.xxxxx.elabcs.play:layout_constraintVertical_bias) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintTop_toBottomOf (aka com.xxxxx.elabcs.play:layout_constraintTop_toBottomOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintHeight_default (aka com.xxxxx.elabcs.play:layout_constraintHeight_default) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.xxxxx.elabcs.play:layout_constraintTop_toTopOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintStart_toStartOf (aka com.xxxxx.elabcs.play:layout_constraintStart_toStartOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:23: AAPT: error: attribute layout_constraintEnd_toEndOf (aka com.xxxxx.elabcs.play:layout_constraintEnd_toEndOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:36: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.xxxxx.elabcs.play:layout_constraintTop_toTopOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:36: AAPT: error: attribute layout_constraintDimensionRatio (aka com.xxxxx.elabcs.play:layout_constraintDimensionRatio) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:36: AAPT: error: attribute layout_constraintStart_toStartOf (aka com.xxxxx.elabcs.play:layout_constraintStart_toStartOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:36: AAPT: error: attribute layout_constraintEnd_toEndOf (aka com.xxxxx.elabcs.play:layout_constraintEnd_toEndOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:36: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.xxxxx.elabcs.play:layout_constraintBottom_toBottomOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:36: AAPT: error: attribute layout_constraintVertical_bias (aka com.xxxxx.elabcs.play:layout_constraintVertical_bias) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:53: AAPT: error: attribute layout_constraintHeight_percent (aka com.xxxxx.elabcs.play:layout_constraintHeight_percent) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:53: AAPT: error: attribute layout_constraintHorizontal_bias (aka com.xxxxx.elabcs.play:layout_constraintHorizontal_bias) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:53: AAPT: error: attribute layout_constraintDimensionRatio (aka com.xxxxx.elabcs.play:layout_constraintDimensionRatio) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:53: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.xxxxx.elabcs.play:layout_constraintBottom_toBottomOf) not found.
         
     ERROR:C:\Users\mjpg7\.gradle\caches\transforms-3\58cddf593c8dd8f040b7e68795a18e6b\transformed\jetified-cardeditorplugin-release\res\layout\activity_camera.xml:53: AAPT: error: attribute layout_constraintVertical_bias (aka com.xxxxx.elabcs.play:layout_constraintVertical_bias) not found.

adding the classes.jar file associated with constraint layout to the Assets/Plugins/Android folder unfortunately did not fix the problem.
Any other suggestions? Thanks!

Okay, I think I solved it; for whatever reason, unity didn’t import the plugin properly until the 10th time or so I messed with it. I also found a custom gradle file that the original developer had set up and was able to add the line for it there (at which point I had duplicate libraries, so I removed the .jar)

Hey there!
Just wanted to share a sad experience I had

Using Unity @ 6000.0.58f2 we’ve started to have our builds halted due to this error. We’ve tried to switch platforms and double check our gradle imports.
You can see that, most (if not all) of issues presented on the gradle log are regarding one single library: ConstraintLayout

To solve this issue we’ve just added

dependencies {
//...
    implementation 'com.android.support.constraint:constraint-layout:2.0.4'
// ...

To our mainTemplate.gradle.
If you are using EDM4U (Google’s External Dependency Manager), remember to run a Force Update of your downloaded libraries

Check the proper version here(Maven Repository Website)