ОШИБКА: сборка не удалась с исключением.
- Что пошло не так:
Произошла проблема при настройке проекта «:agora_rtm».
Пространство имен не указано. Укажите пространство имен в файле сборки модуля. Информацию о настройке пространства имен см. на странице https://d.android.com/r/tools/upgrade-a ... -namespace.
Код: Выделить всё
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
- Попробуйте:
Запустите с параметром --info или --debug, чтобы получить больше результатов журнала.
Запустите с --scan, чтобы получить полную информацию.
Дополнительную помощь можно получить по адресу https://help.gradle.org.
СБОРКА ОШИБАЕТСЯ за 1 с.
Ошибка: задача Gradle assembleDebug не удалась с кодом завершения 1
Выход (1).
android/app/src/main/AndroidManifest.xml
Код: Выделить всё
Код: Выделить всё
plugins {
id "com.android.application"
// START: FlutterFire Configuration
id 'com.google.gms.google-services'
// END: FlutterFire Configuration
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
android {
namespace = "com.example.babble"
compileSdk = flutter.compileSdkVersion
ndkVersion = flutter.ndkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId = "com.example.babble"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = 23
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.debug
}
}
}
flutter {
source = "../.."
}
Код: Выделить всё
flutter clean
flutter pub get
flutter run
Подробнее здесь: https://stackoverflow.com/questions/790 ... in-flutter
Мобильная версия