google-developer-training / android-basics-kotlin-cupcake-app

Apache License 2.0
103 stars 163 forks source link

Upgrade gradle to 7.0.4 #92

Open andyromerodev opened 1 year ago

andyromerodev commented 1 year ago

With the gradle version 7.0.3 databinding-adapters does not work

This is the error:

Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform databinding-adapters-7.0.3.aar (androidx.databinding:databinding-adapters:7.0.3) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not isolate parameters com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@629fa9dd of artifact transform AarResourcesCompilerTransform
         > Could not isolate value com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@629fa9dd of type AarResourcesCompilerTransform.Parameters
            > Could not resolve all files for configuration ':app:detachedConfiguration1'.
               > Failed to transform aapt2-7.0.3-7396180-windows.jar (com.android.tools.build:aapt2:7.0.3-7396180) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
                  > Could not find aapt2-7.0.3-7396180-windows.jar (com.android.tools.build:aapt2:7.0.3-7396180).
                    Searched in the following locations:
                        https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/7.0.3-7396180/aapt2-7.0.3-7396180-windows.jar
   > Failed to transform databinding-ktx-7.0.3.aar (androidx.databinding:databinding-ktx:7.0.3) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not isolate parameters com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@629fa9dd of artifact transform AarResourcesCompilerTransform
         > Could not isolate value com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@629fa9dd of type AarResourcesCompilerTransform.Parameters
            > Could not resolve all files for configuration ':app:detachedConfiguration1'.
               > Failed to transform aapt2-7.0.3-7396180-windows.jar (com.android.tools.build:aapt2:7.0.3-7396180) to match attributes {artifactType=_internal-android-aapt2-binary, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
                  > Could not find aapt2-7.0.3-7396180-windows.jar (com.android.tools.build:aapt2:7.0.3-7396180).
                    Searched in the following locations:
                        https://dl.google.com/dl/android/maven2/com/android/tools/build/aapt2/7.0.3-7396180/aapt2-7.0.3-7396180-windows.jar

My solution was to update the gradle version to 7.0.4

I hope this minimal contribution is of some use, greetings

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.