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
2
votes
0 answers

Execution failed for task ':app:minifyReleaseWithR8' - jetified-opencv-4.1.0-runtime.jar:org

While building react native app android build, build fails with the below error. * What went wrong: Execution failed for task ':app:minifyReleaseWithR8'. > com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin:…
Lakpriya Senevirathna
  • 2,488
  • 2
  • 17
  • 35
2
votes
1 answer

If checkJetifier doesn't throw warning, does that mean I can remove it from my project?

I ran build -> Make Project, and then used the Build Analyzer. Inside the reports, I select the Warning tab and no jetifier warnings are found. (The project is build with Android Gradle Plugin 4.1) Does that mean that I can be confident that…
htafoya
  • 18,261
  • 11
  • 80
  • 104
2
votes
0 answers

Unable to clean or build my android project after adding custom task in my gradle , seems like some conflict with Kotlin Multiplatform dependency

I need to add one custom task as per this answer and it works completely fine in case of a sample project I have created, but in my main project I am getting error even when I try to clean the project. In my main project, error seems like Kotlin…
2
votes
1 answer

enableJetifier not working for library project

My new kotlin project use androidx by default, with android.useAndroidX=true & android.enableJetifier=true configured in root project's gradle.properties. But it also depends on a module library which is using support.v4 libraries. Shouldn't…
2
votes
1 answer

Gradle plugin 3.5.0: "Failed to transform artifact", "Execution failed for JetifyTransform"

We updated Android Gradle plugin from 3.4.2 to 3.5.0 (and Gradle from 5.1.1 to 5.4.1). After that, the build started failing in a few submodules. Trying to assemble any build variant yields this (same error on the command line and in Android…
Jonik
  • 80,077
  • 70
  • 264
  • 372
2
votes
1 answer

Jetifier not working when library uses android component and app uses androidx component

I have an app where I am using AncdroidX components. Jetifier is enabled android.enableJetifier=true android.useAndroidX=true Now i am adding a third party library which uses android libraries instead of AndroidX (com.android.support). Library…
Prashant
  • 3,823
  • 3
  • 25
  • 40
2
votes
2 answers

How to make Android Jetifier works with databinding?

My Android project has 2 Android library modules: app and boo. app module has already migrated to AndroidX, boo is still using support library. In boo module, I want to add a new library that depends on both support library and uses data binding. I…
2
votes
0 answers

Can we make jetifier work with generated code

If you use an annotation processor that generates code and is not yet converted to android x, the generated code of course may contain app compat imports. Sadly, be default, the jetifier is not converting this code. Is there any way to solve this…
prom85
  • 16,896
  • 17
  • 122
  • 242
2
votes
2 answers

AndroidX Jetifier Mockito java.lang.SecurityException: SHA-256 digest error for com/samsung/android/sdk/accessory/SAAgentV2.class

I am migrating my app to use AndroidX. I have enabled Jetifier in my gradle.properties file android.useAndroidX=true android.enableJetifier=true I use mockito in some tests. After migration a few tests fail where mockito is not able to mock…
Gaurav Vashisth
  • 7,547
  • 8
  • 35
  • 56
2
votes
1 answer

requireActivity(), requireContext() and requireFragmentManager() wont work with AndroidX

I've been working on updating out project which contains DataBinding, to the new AndroidX packages. There were a number of issues with misuse of the DataBinding SafeUnbox methods, but these are resolved and I am currently prevented from building…
Nick Cardoso
  • 20,807
  • 14
  • 73
  • 124
1
vote
0 answers

Duplicate class error while generating pdf using separate class

The duplicate class error. jetters are given true This error is poppping even after trying all the methods available in the StackOverflow. error is Duplicate class org.intellij.lang.annotations.Flow found in modules jetified-annotations-13.0…
1
vote
0 answers

Why jetifier using only 4 worker?

When I run react-native app on mini-mac, i see that jetifier only uses 4 workers, while in my windows machine and my colleagues mac machines it uses 8 or 12 workers. does anyone knows how to improve this? How can i use 12 workers in my…
gavdix
  • 358
  • 1
  • 2
  • 21
1
vote
2 answers

React Native, why is react-native run-android not working?

I'm trying to run command react-native run-android but it's throwing an error. I'm following docs I followed every step but it's not working, I think it's not picking the path but it set as shown in doc. Can Anyone tell me what's wrong? info Running…
1
vote
0 answers

Failed to transform artifact xxx.aar

Execution failed for task ':app:preDebugBuild'. Could not resolve all files for configuration ':app:debugCompileClasspath'. Failed to transform artifact 'xxx.aar (project :xxx)' to match attributes {artifactType=android-manifest} Execution…
aref behboodi
  • 164
  • 2
  • 11
1
vote
1 answer

AndroidX Jetifier unable/failed to transform 3rd-party transitive dependency that still use Support Library

I've recently migrated my project to use AndroidX My apps crashes, after I migrate to AndroidX, due to library still using Support Library. Here's a list of my 3rd-party dependencies/library, that failed to transform into…