org.androidannotations: Подчеркивание суффикса имени класса: ошибка: не удается найти символ - PullRequest
0 голосов
/ 15 декабря 2018

Android Studio 3.2

classpath 'com.android.tools.build:gradle:3.2.1'

В моем приложении / build.gradle:

def AAVersion = '4.5.2'
def ORMLiteAAVersion = '4.1.0'

dependencies {
    annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
    annotationProcessor "org.androidannotations:ormlite:$ORMLiteAAVersion"

    implementation fileTree(dir: 'libs', include: ['*.jar'])

    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'org.apache.commons:commons-lang3:3.8.1'
    implementation 'org.apache.httpcomponents:httpclient:4.5.6'
    implementation 'com.google.android.gms:play-services-gcm:16.0.0'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.j256.ormlite:ormlite-android:5.1'
    implementation 'commons-io:commons-io:2.6'
    implementation "org.androidannotations:androidannotations-api:$AAVersion"
    implementation "org.androidannotations:ormlite-api:$ORMLiteAAVersion"   
}

В моем фрагменте:

import org.androidannotations.annotations.Background;
import org.androidannotations.annotations.EFragment;
import org.androidannotations.annotations.UiThread;
@EFragment
public class InvoicesV2Fragment extends DataFragment {
    public final static String ACTION_CHANGED_COUNT_ITEMS_IN_CART = "ACTION_CHANGED_COUNT_ITEMS_IN_CART";

@UiThread
    void notifyCartItemsCountChanged() {
        Intent intent = new Intent();
        intent.setAction(InvoicesV2Fragment_.ACTION_CHANGED_COUNT_ITEMS_IN_CART); // error here
    }

Но я получаю ошибку:

error: cannot find symbol InvoicesV2Fragment_
...