Migrate to androidX

The complete steps for migrating to AndroidX are as follows. Even if the library you refer to does not complete the migration of AndroidX, gradle will allow your project to run.

Edit andorid/app/build.gradle

android{
    compileSdkVersion 28
}

If use gradle wrapper

If you have the path then you need edit it.

edit android/gradle/wrapper/gradle-wrapper.properties

need 4.10.1+

distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip

Edit android/build.gradle

Usually, this version is the same as Android studio.

buildscript{
  dependencies{
    classpath 'com.android.tools.build:gradle:3.3.1'
  }
}

Edit android/gradle.properties

Add or edit two properties.

android.enableJetifier=true
android.useAndroidX=true

results matching ""

    No results matching ""