AAPT: ошибка: атрибут стиля «android:attr/windowOptOutEdgeToEdgeEnforcement» не найденAndroid

Форум для тех, кто программирует под Android
Ответить Пред. темаСлед. тема
Anonymous
 AAPT: ошибка: атрибут стиля «android:attr/windowOptOutEdgeToEdgeEnforcement» не найден

Сообщение Anonymous »

Я хочу избавиться от безрамочного режима в Android 15.
styles.xml

Код: Выделить всё





@drawable/launch_background




true


build.gradle

Код: Выделить всё

android {
compileSdkVersion 35
ndkVersion flutter.ndkVersion

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

kotlinOptions {
jvmTarget = '1.8'
}

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}

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'
}
Ошибка

Код: Выделить всё

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
В чем может быть проблема?

Подробнее здесь: https://stackoverflow.com/questions/793 ... rcement-no
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Android»