1. Download the new version from Us
2. Extract the files in the folder /Update/flutter_application
and merge the content of this folder with your flutter application folder.
Change Package Name
If you want to change the package name following the next steps
1 – Open /android/app/build.gradle
and change the package name
defaultConfig {
applicationId "<REPLACE WITH YOUR PACKAGE NAME>" // this is the package name
minSdkVersion 19
targetSdkVersion 29
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
2- Open /android/app/src/main/AndroidManifest.xml
, /android/app/src/profil/AndroidManifest.xml
, /android/app/src/debug/AndroidManifest.xml
and specify your:
- YOUR PACKAGE NAME
- YOUR APPLICATION NAME
- YOUR GOOGLE MAPS KEY
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="<YOUR PACKAGE NAME>">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="<YOUR APPLICATION NAME>"
android:icon="@mipmap/ic_launcher">
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="<YOUR GOOGLE MAPS KEY>"/>
3 – Open /android/app/src/main/kotlin/<Your Package name folders>/MainActivity.kt
and change the package name
4 – Update the dependencies: open your console, go to the root folder of your project, and run:
flutter pub get
Facebook Comments