Я хотел сделать текст редактирования плавающей меткой. Итак, я добавил это в зависимости:
implementation 'com.android.support:design:28.0.0'
Теперь я получаю эту ошибку в разделе "Проблема с рендерингом":
Render Problem
Failed to find style 'chipIconSize' in current theme
Вышеупомянутая ошибка отображается в предварительном просмотре XML.
Это раздел зависимостей в build gradle (модульном приложении):
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
//noinspection GradleCompatible
implementation 'com.google.firebase:firebase-database:16.0.3'
implementation 'com.google.android.gms:play-services-location:16.0.0'
// implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.google.firebase:firebase-messaging:17.3.3'
implementation 'com.google.firebase:firebase-auth:16.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}
Logcat показывает следующую ошибку и предупреждение в компиляторе Java:
The app gradle file must have a dependency on com.google.firebase:firebase-core for Firebase services to work as intended.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error: check logs for details
Как я могу исправить ошибку?




The app gradle file must have a dependency on
com.google.firebase:firebase-corefor Firebase services to work as intended.
Добавлять :
implementation 'com.google.firebase:firebase-core:16.0.4'
К вашим зависимостям build.gradle.
Для :
Failed to find style '
chipIconSize' in current theme
Кажется, вам нужно добавить:
implementation 'com.google.android.material:material:1.0.0'
Чтобы поддержать этот атрибут в материальном дизайне или просто удалить его.
Проверьте эту ссылку:https://material.io/develop/android/docs/getting-started/
Проверьте журнал ошибок сборки, и он покажет, в чем еще проблема. подробности смотрите в журналах
Я все еще получаю сообщение об ошибке: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Ошибка AAPT2: подробности см. В журналах.