Flutter project fails to build after adding huawei agconnect

After adding ‘com.huawei.agconnect’ plugin my flutter project fails to build:

FAILURE: Build failed with an exception.

What went wrong: Execution failed for task ‘:app:processDebugResources’. failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

Android resource linking failed C:Usersdenbo.gradlecachestransforms-2files-2.12f7fef5146433a886db0a4b7a0dabd3cpush-5.1.1.301AndroidManifest.xml:9:5-11:55: AAPT: error: resource attr/??? (aka com.example.app:attr/???) not found.

my android/build.gradle

buildscript {
    ext.kotlin_version = '1.3.61'
    repositories {
        google()
        jcenter()
        maven { url 'https://developer.huawei.com/repo/' }
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'com.huawei.agconnect:agcp:1.4.2.301'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url 'https://developer.huawei.com/repo/' }
    }
}

android/app/build.gradle

//stuff
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.huawei.agconnect'

Answer

The problem was that I had cyrillic characters as a label for my application in AndroidManifest.

<application
        android:name="io.flutter.app.FlutterApplication"
        android:label="АБВГ"
        android:icon="@mipmap/launcher_icon">

After changing this to

<application
        android:name="io.flutter.app.FlutterApplication"
        android:label="ABCD"
        android:icon="@mipmap/launcher_icon">

I am able to build my app.