Skip to content
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
This repository was archived by the owner on Feb 26, 2023. It is now read-only.

Unable to build project with @Pref in @EBean with kapt #1925

@WeaponMan

Description

@WeaponMan

AndroidAnnotations version: 4.2.0
Android compile SDK version: 25
Annotated code:

@SharedPref(SharedPref.Scope.APPLICATION_DEFAULT)
interface TestPref {
    fun test(): String
}

@EBean
open class TestBean {
    @Pref lateinit open var test: TestPref_
}

Kotlin version: 1.0.5-3 (kapt2)

I am unable to build this annotated code, but in java version of this builds fine.
Annotating only activity/fragment is also fine only on Ebean this code end with unresolved reference on TestPref_.

error: org.androidannotations.annotations.sharedpreferences.Pref can only be used on an element that extends org.androidannotations.api.sharedpreferences.SharedPreferencesHelper
warning: Element test invalidated by PrefHandler

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions