0

Failed to transform common-27.0.1.jar (com.android.tools:common:27.0.1) to match attributes {artifactType=android-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.

  > Execution failed for JetifyTransform: C:\Users\MyPc\.gradle\caches\modules-2\files-2.1\com.android.tools\common\27.0.1\62d59d2a0ee7d0cd7bbeba97ddce45f7898ec6c6\common-27.0.1.jar.

     > Failed to transform 'C:\Users\MyPc\.gradle\caches\modules-2\files-2.1\com.android.tools\common\27.0.1\62d59d2a0ee7d0cd7bbeba97ddce45f7898ec6c6\common-27.0.1.jar' using Jetifier. Reason: The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)

Failed to transform bundletool-0.13.2.jar (com.android.tools.build:bundletool:0.13.2) to match attributes {artifactType=android-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-api}.

  > Execution failed for JetifyTransform: C:\Users\MyPc\.gradle\caches\modules-2\files-2.1\com.android.tools.build\bundletool\0.13.2\bb629ece022e5aa20cff66517e728c89f9667721\bundletool-0.13.2.jar.

     > Failed to transform 'C:\Users\MyPc\.gradle\caches\modules-2\files-2.1\com.android.tools.build\bundletool\0.13.2\bb629ece022e5aa20cff66517e728c89f9667721\bundletool-0.13.2.jar' using Jetifier. Reason: The given artifact contains a string literal with a package reference 'android.support.design.widget' that cannot be safely rewritten. Libraries

using reflection such as annotation processors need to be updated manually to add support for androidx.. (Run with --stacktrace for more details.)

4
  • Did you try with flutter clean and rebuild again, if it doesn't work, maybe you need to change Kotlin version on android directory. Commented Sep 7, 2021 at 8:18
  • Please try this out, this may work Commented Sep 7, 2021 at 8:20
  • Yes i tried several times. but the same issue occurs . Also change the Kotline version ext.kotlin_version = '1.5.15' Commented Sep 7, 2021 at 8:21
  • @WasiqHussain how did you fix this? Commented May 27, 2022 at 9:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.