Программирование под Android: Руководство Big Nerd Ranch, 5-е издание. Но когда я пытаюсь запустить свое приложение, оно выдает ошибку:
Не удалось привязать ресурсы Android
com.bignerdranch.android.geoquiz.app -mergeDebugResources-48:/layout/activity_main.xml:43:
ошибка: атрибут iconGravity (также известный как
com.bignerdranch.android.geoquiz:iconGravity) не найден. ошибка: не удалось
связать файловые ресурсы.
В activiy_main.xml все как в книге.
< img alt="введите описание изображения здесь" src="https://i.sstatic.net/e3FZ9.png" />
Здесь добавлен значок:

Думаю, что-то не так в моих зависимостях:
Код: Выделить всё
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
implementation 'androidx.core:core-ktx:1.10.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation 'androidx.activity:activity-compose:1.7.1'
implementation platform('androidx.compose:compose-bom:2022.10.00')
implementation 'androidx.compose.ui:ui'
implementation 'androidx.compose.ui:ui-graphics'
implementation 'androidx.compose.ui:ui-tooling-preview'
implementation 'androidx.compose.material3:material3'
implementation 'androidx.appcompat:appcompat:1.6.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
debugImplementation 'androidx.compose.ui:ui-tooling'
debugImplementation 'androidx.compose.ui:ui-test-manifest'
}
Подробнее здесь: https://stackoverflow.com/questions/761 ... -not-found
Мобильная версия