AndroidX incompatibilities (Build failed with an exception)

Example of issue

The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin file_picker…
FAILURE: Build failed with an exception.What went wrong:
A problem occurred configuring root project ‘file_picker’.
SDK location not found. Define location with sdk.dir in the file or with an ANDROID_HOME environment variable.

How I fixed “unexpected element <queries> found in <manifest>” error?

dependencies {classpath ''}
compileSdkVersion 29

How do I migrate my existing app, plugin or host-editable module project to AndroidX?

  1. Open Android Studio.
  2. Select Open an existing Android Studio Project.
  3. Open the android directory within your app.
  4. Wait until the project has been synced successfully. (This happens automatically once you open the project, but if it doesn’t, select Sync Project with Gradle Files from the File menu).
  5. Select Migrate to AndroidX from the Refactor menu.
  6. If you are asked to backup the project before proceeding, check Backup project as Zip file, then click Migrate. Lastly, save the zip file in your location of preference.
  1. The refactoring preview shows the list of changes. Finally, click Do Refactor:



UI/UX Designer & Front End Developer @CADS Software LTD UK,

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store