FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
ERROR: C:\Users\nick_\VSCodeProjects\xxx\android\app\src\main\res\values\styles.xml:15:5-18:13: AAPT: error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found.
2
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 24s
Error: Gradle task assembleDebug failed with exit code 1
defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.xxx.xxx" // You can update the following values to match your application needs. // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-build-configuration. minSdkVersion 24 targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName }
signingConfigs { release { ... } }
buildTypes { release { // Add your own signing config for the release build. // Signing with the debug keys for now, so `flutter run --release` works. signingConfig signingConfigs.release minifyEnabled false shrinkResources false } } namespace 'com.xxx.xxx' } [/code] [b]Ошибка[/b] [code]FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > Android resource linking failed ERROR: C:\Users\nick_\VSCodeProjects\xxx\android\app\src\main\res\values\styles.xml:15:5-18:13: AAPT: error: style attribute 'android:attr/windowOptOutEdgeToEdgeEnforcement' not found. 2
* Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 24s Error: Gradle task assembleDebug failed with exit code 1 [/code] В чем может быть проблема?
Сначала мне удавалось все запускать без проблем, но потом внезапно эта ошибка начала появляться каждый раз, когда я пытаюсь построить сборку, указывая конкретно на этот XML-файл: C:\Users\Lenovo.gradle\caches\transforms-2\...
Сначала мне удавалось все запускать без проблем, но потом внезапно эта ошибка начала появляться каждый раз, когда я пытаюсь построить сборку, указывая конкретно на этот XML-файл: C:\Users\Lenovo.gradle\caches\transforms-2\...
Я пытаюсь собрать APK своего проекта, но у меня есть:
* What went wrong:
Execution failed for task ':audioplayers:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
>...