Мне просто пришлось переместить приложение android на androidx из-за нескольких проблем. Теперь у меня проблема, что приложение «неактивно» в Desginer (см. Снимок экрана):
Снимок экрана
В дизайнере появляется сообщение об ошибке:
The following classes could not be found:
- android.support.constraint.ConstraintLayout ( Add constraint-layout library dependency to the project, Fix Build Path, Edit XML, Create Class)
Я бы предположил, что отсутствует класс для макета ограничения, но это не так. Это мой файл build.gradle:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
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.google.android.gms:play-services-ads:19.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:design:28.0.0'
}
У вас есть идеи? Я уже пробовал все на inte rnet, создавал приложение, перестраивал, синхронизировал c с файлами gradle, пробовал разные версии макета ограничений.