Configuration
Android Configuration
Open Android module in Android Studio
- Open Android Studio.
- Select Open an existing Android Studio Project.
- Open the android directory within your app.
- 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).
- Now, click on Run button.
Change Application Name
- You must want to change your application name. This is how you can do. Follow the below step.
- Open
/android/app/src/main/AndroidManifest.xml
and specify your application name.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name="io.flutter.app.FlutterApplication"
android:label="YOUR_APPLICATION_NAME"
android:icon="@mipmap/ic_launcher">
<activity
Change Application Icon
- See How to generate an application icon?
- Browse your image and click on Download icon. After successfully generated, replace all icons in respective folders:
/mipmap-hdpi
in/android/app/src/main/res/
folder/mipmap-mdpi
in/android/app/src/main/res/
folder/mipmap-xhdpi
in/android/app/src/main/res/
folder/mipmap-xxhdpi
in/android/app/src/main/res/
folder/mipmap-xxxhdpi
in/android/app/src/main/res/
folder
Important:
Application icon name must be ic_launcher
Change Application ID
- Follow the below steps to change you Application ID.
- Open
/android/app/build.gradle
defaultConfig {
applicationId "YOUR_APPLICATION_ID"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
How to build Amoux Themes Flutter in Android
Video Content:-
- Introduction
- Open the Android module from the Flutter app
- Changing Application ID
- Changing the Application Version Code and Version Name
- Changing Application Name
- Generating Sign APK