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
126
votes
10 answers

The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. for androidx

I upgraded my android studio to 3.4 canary and now I cannot successfully build anymore due to the following error: The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten.…
Tnaffh
  • 1,313
  • 2
  • 8
  • 12
46
votes
9 answers

Failed to transform file 'some-lib-release.aar' to match attributes {artifactType=processed-aar} using transform JetifyTransform

I have a project with 2 modules: an app (Java) with build types debug, release, and enterprise and a Kotlin library (release and debug) used by the app. I'm using AndroidX and have the following in my…
copolii
  • 14,208
  • 10
  • 51
  • 80
29
votes
3 answers

Issues using AndroidX and React Native

I've been trying to integrate AndroidX into my hybrid React Native project, and I've run into the issue that Jetifier doesn't run on "local" projects. This results in all of my React Native libraries still using the old support libraries. I've put…
Chubacca
  • 435
  • 1
  • 5
  • 9
19
votes
1 answer

Contains references to both AndroidX and old support library

After upgrating flutter version to Flutter 1.22.0-2.0.pre.78 • channel master I am getting this warning:- WARNING: [Processor]…
Nicks
  • 3,188
  • 3
  • 25
  • 29
17
votes
5 answers

2 files found with path 'META-INF/LGPL2.11'

Does anybody knows how to debug this? I cannot figure out which libraries are generating the problem. Side note, it only happens when I try to run Android tests so my best guess is it's related to some testing library. testImplementation…
Lorenzo Benevento
  • 522
  • 1
  • 3
  • 16
14
votes
8 answers

A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction

My react native project build fails somehow because of this error: Execution failed for task ':app:mergeDebugNativeLibs'. > A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction …
13
votes
4 answers

androidX jetifier - Is there a way to ignore jetifying a .JAR?

Trying to update my app to androidX dependencies. Followed instructions here, and compilation failed. The error came from JetifyTransform task failing to process a certain .JAR dependency (FYI - Samsungs Spass SDK) : FAILURE: Build failed with an…
Mardann
  • 1,953
  • 1
  • 16
  • 23
11
votes
1 answer

Android: Deprecated cannot be converted to Annotation

Gone down the rabbit hole of migrating to AndroidX... I've nearly completed the migration, but running into one error I can't seem to get past. Already tried Clean & Rebuild and Invalidate Caches / Restart It looks like something is injecting…
Evelyn
  • 2,588
  • 3
  • 22
  • 47
10
votes
3 answers

android-jetifier: "Could not resolve all artifacts"; "Failed to transform artifact" on new project

I have a relatively new project that I'm trying to build. Gradle syncs fine, but whenever I try to build, I get an error like this: Execution failed for task ':app:kaptGenerateStubsDebugKotlin'. > Could not resolve all artifacts for configuration…
MowDownJoe
  • 728
  • 1
  • 11
  • 29
10
votes
3 answers

AndroidX migrate dependency / libraries

I have successfully migrated my project to AndroidX. App is running perfectly, but I am getting compile time errors, because my dependencies use support package. Reason of this error Because PhotoView is a dependency class, which uses…
Khemraj Sharma
  • 57,232
  • 27
  • 203
  • 212
9
votes
4 answers

Gradle - Transformation hasn't been executed yet

I just migrated my project to androidx and enabled jetifier. Now when I want to build my project I get this error : " Transformation hasn't been executed yet " Gradle sync finishes without any error but building fails. This task is failed to…
Saeed.re
  • 740
  • 9
  • 19
8
votes
2 answers

Android Zendesk SDK v1 Offline Messge Fragment layout invalid after Jetifier

I have been using Zendesk v1 SDK along with AndroidX and Jetifier and after updating to AS 3.3, Gradle version 4.10.1, I am getting errors at compile time, it looks like Jetifier is translating IDs incorrectly in the offending generated file. There…
cren90
  • 1,367
  • 2
  • 17
  • 30
7
votes
0 answers

Is there any way to use androidX library like(Firebase Crashlytics) in old project without migrating project to androidX?

emphasized textI need to use firebase Crashlytics in project but not want to migrate project to android. I want to know if it possible. How to use an Androidx library in a project which is not migrated to Androidx :- similar to this Added…
6
votes
0 answers

Failed to transform artifact 'kotlin-android-extensions.jar

Getting below error after enabling jetifier Execution failed for JetifyTransform:…
Balwinder SIngh
  • 1,831
  • 2
  • 24
  • 28
6
votes
0 answers

Libraries using reflection such as annotation processors need to be updated manually to add support for androidx

I have migrated to androidX by using android studio 3.4 and after migrating I'm facing every time this issue. Though I've tried excluding butterknife compilerAnnotation in gradle.properties but that shows WARNING: The option setting…
Al Walid Ashik
  • 1,545
  • 20
  • 32
1
2 3 4 5