Я открыл старый (~ 2 года) проект в Android Studio. Обновлены все настройки, как было предложено в IDE, попытался восстановить, и внезапно я начинаю получать сообщение об ошибке «Не могу найти символ класса Piano».
Прежде всего, снимок экрана:
![Error](https://i.stack.imgur.com/mpbHj.png)
Как вы можете видеть слева, я do имею этот пакет, несмотря на ошибки, говорящие об обратном. Ошибка отображается в одном из автоматически сгенерированных файлов привязки данных.
Я создаю проект app
, соответствующий пакет содержится в проекте controls
. Файлы Gradle выглядят следующим образом:
файл проекта Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
app.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.spooksoft.musictrainer"
minSdkVersion 18
targetSdkVersion 28
versionCode 14
versionName "1.9"
}
signingConfigs {
release {
storeFile file("signing/myreleasekey.keystore")
keyAlias "musictrainer"
}
}
flavorDimensions "type"
productFlavors {
full {
applicationId "com.spooksoft.musictrainer"
}
lite {
applicationId "com.spooksoft.musictrainer_lite"
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
dataBinding {
enabled true
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation project(':controls')
implementation project(':configuration')
implementation 'com.j256.ormlite:ormlite-android:5.0'
implementation 'com.pgs-soft:gimbus:1.1.0'
implementation 'com.android.support:cardview-v7:28.0.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.1'
implementation 'joda-time:joda-time:2.9.1'
implementation 'org.solovyev.android:checkout:1.0.0'
}
controls.gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 18
targetSdkVersion 28
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:28.0.0'
}
Я уже попытался очистить и восстановить oraz, сделать недействительным кеш и перезапустить.
Проект собран без проблем в более старой версии Android Studio.
Чего мне не хватает? Что я мог неправильно настроить?