Questions tagged [android-jetifier]

Jetifier is an AndroidX migration tool included in Android Studio 3.2 since Canary 14. It scans project dependencies and replaces references to the old support library artifacts and class names with the AndroidX equivalents.

Jetifier is an AndroidX migration tool included in Android Studio 3.2 since Canary 14. It scans project dependencies and replaces references to the old support library artifacts and class names with the AndroidX equivalents.

73 questions
5
votes
2 answers

Why gradlew assembleDebug doesn't run jetifier, while react-native run-android run jetifier?

I've set android.useAndroidX = true and android.enableJetifier = true on gradle.properties. But when I run react-native run-android I see: info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier"…
Chen Li Yong
  • 5,459
  • 8
  • 58
  • 124
5
votes
0 answers

How to avoid running the jetifier transormation on aar dependencies on every CI run

We are trying to decrease the impact of the jetifier transformation on our CI builds. We are using AndroidX and we upgraded all our code to use the AndroidX packages. We have the jetifier enabled, so all the dependencies we are using, are…
5
votes
1 answer

Avoid AndroidX Jetifier log spam

I recently migrated my app to AndroidX and thus use the Jetifier tool (currently the version bundled with Android Gradle plugin version 3.3.0-alpha10): # gradle.properties android.useAndroidX=true android.enableJetifier=true It works fine, but adds…
rubengees
  • 1,841
  • 2
  • 16
  • 31
4
votes
1 answer

Duplicate class in com.google.android.play.core in common and review modules

After upgrading react-native-wonderpush the following error is showing at android build: Duplicate class com.google.android.play.core.common.IntentSenderForResultStarter found in modules jetified-core-1.9.0-runtime…
Florin Dobre
  • 9,872
  • 3
  • 59
  • 93
4
votes
2 answers

Failed to transform jar to match attributes

Execution failed for task ':app:checkClassicGooglePlayDebugDuplicateClasses'. > Could not resolve all files for configuration ':app:classicGooglePlayDebugRuntimeClasspath'. > Failed to transform SaaS_TalkingDataSDK_Android_V5.0.0.jar to match…
virengujariya
  • 285
  • 1
  • 4
  • 16
4
votes
1 answer

Jetifier does not convert support dependencies

I cloned ExoPlayer locally and added the modules to my existing project using my settings.gradle as described in the documentation: gradle.ext.exoplayerRoot = 'path/to/exoplayer' gradle.ext.exoplayerModulePrefix = 'exoplayer-' apply from: new…
Verhelst
  • 1,492
  • 2
  • 22
  • 46
4
votes
1 answer

Jetifier/AndroidX transforming string in aar

I have an external aar library that is checking if Chrome Custom Tabs are available. They are doing this by creating an intent and checking if the service exists. The intent action is android.support.customtabs.action.CustomTabsService In the…
DJ Rausch
  • 83
  • 2
  • 6
4
votes
2 answers

How do I use the standalone Jetifier to migrate to AndroidX?

The Jetifier tool is used as part of the AndroidX migration tool bundled with Android Studio. There is an issue with the tool, however, that is outlined here: https://issuetracker.google.com/issues/113224601. The error message looks like this when…
nkotula
  • 71
  • 1
  • 1
  • 6
3
votes
2 answers

Duplicate class a.a found in modules jetified android

I am using two libraries in my app 1 aar and another gradle dependency. I am getting this error on building release build Duplicate class a.a found in modules jetified-android-sdk-1.7.26-runtime (com.cashfree.pg:android-sdk:1.7.26) and…
WISHY
  • 11,067
  • 25
  • 105
  • 197
3
votes
3 answers

Failed to transform moshi-1.13.0.jar (failed for task biometric_storage:kaptGenerateStubsDebugKotlin)

I pulled a team's project that is made in Flutter from Git and for some reason when building the app (pressing the green arrow in Android Studio and running main.dart) I get the following message: What went wrong: Execution failed for task…
Pero122
  • 892
  • 11
  • 25
3
votes
1 answer

Duplicate class com.google.android.a.a found in modules?

I tried adding Installreferrer to my app after adding it to gradle, when rebuilding the app. I'm getting this error. Duplicate class com.google.android.a.a found in modules jetified-installreferrer-2.2-runtime…
3
votes
1 answer

Why is getOnBackPressedDispatcher() method unresolved until 'androidx.navigation:navigation-ui' is added as a dependency?

I'm trying to customize onBackPress behaviour of JetPack Navigation. Although I found the solution I'm just curious what's going behind the scenes in the following scenario: Initial state of my activity is MyActivity extends…
Michal Vician
  • 2,486
  • 2
  • 28
  • 47
3
votes
1 answer

OkBuck is not working with Android Jetifier with zero dependencies

I am trying to use okbuck with Android Studio 3.3, but I got stuck on AndroidX. When I convert all dependencies to androidx and set: android.enableJetifier=true android.useAndroidX=true With running I get the following error: ./buckw install --run…
Majkeee
  • 960
  • 1
  • 8
  • 28
3
votes
1 answer

Dependency with android support library not working with project using Androidx

I'm using a dependacy in my project that uses the Andorid Support Library. My project is using AndroidX and i'm unable to use this dependancy due to a compile time error: I have added the following dependency to my project: implementation…
3
votes
2 answers

AndroidX jetifier: Failed to transform file 'android-all-9-robolectric-4913185-2.jar' to match attributes using transform JetifyTransform

After migrating to AndroidX, I receive this error when building Failed to transform…
BrianM
  • 951
  • 2
  • 12
  • 29