У меня есть приложение, которое работает нормально, однако независимо от того, как оно установлено — с помощью Google или через запуск, на устройство устанавливается 3 приложения, все они идентичны и рассматриваются как одно и то же приложение.AndroidManifest (Main) — другие манифесты не имеют значения и не содержат действий
build.gradle (приложение)
plugins {
id "com.android.application"
id "kotlin-android"
id "dev.flutter.flutter-gradle-plugin"
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
android {
namespace "com.example.myapp"
compileSdkVersion 34
ndkVersion "26.1.10909125"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true
}
kotlinOptions {
jvmTarget = '1.8'
}
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/bu ... on-id.html).
applicationId "com.example.myapp"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/and ... figuration.
minSdkVersion flutter.minSdkVersion
targetSdkVersion flutter.targetSdkVersion
versionCode 1
versionName '1.0.1'
multiDexEnabled true
}
buildTypes {
release {
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug
minifyEnabled = false
shrinkResources = false
}
debug {
minifyEnabled = false
shrinkResources = false
}
}
}
flutter {
source '../..'
}
dependencies {
implementation 'androidx.window:window:1.0.0'
implementation 'androidx.window:window-java:1.0.0'
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.3")
}
Подробнее здесь: https://stackoverflow.com/questions/791 ... -on-device