How to migrate to AndroidX in my Flutter project?
3,379
In gradle.properties add
android.enableJetifier=true
android.useAndroidX=true
In project build.gradle,
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.30'
classpath 'com.google.gms:google-services:4.2.0'
Instead i had these and it works:
classpath 'com.android.tools.build:gradle:3.3.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.2.0'
or
classpath 'com.android.tools.build:gradle:3.4.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.2.0'
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Author by
Admin
Updated on December 10, 2022Comments
-
Admin over 1 year
I tried to migrate my project. But I can't able to do it.
Migrate to AndroidX
No Usages Found in the Project
-
Admin about 5 yearssame result. No usage found in the project
-
Kashifa about 5 yearsMay be this link can help you stackoverflow.com/questions/54851489/…
-
JideGuru about 5 yearsdeveloper.android.com/jetpack/androidx/migrate Try this link, if you can understand it