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.

After update Android Studio from 4.1.3 to version 4.2.1 SharedPrefs_ always null #2303

Description

@DenisFedak84

AndroidAnnotations version: 4.8.0

Android compile SDK version:29

Annotated code:
@eApplication
public class XXXXX extends SharedApplication {
.....
@PREF
SharedPrefs_ sharedPrefs;
....
}

Expected generated code:
sharedPrefs should be created

Actual generated code:
sharedPrefs null

Stacktrace in case of AA crash:
java.lang.RuntimeException: Unable to create application xxx.xxx.xxx.xxxApplication_: java.lang.NullPointerException: Attempt to invoke virtual method 'xxx.xxx.xxx.xxx.SharedPrefs_$SharedPrefsEditor_ xxx.xxx.xxx.xxx.SharedPrefs_.edit()' on a null object reference

**Android gradle plagin version 4.1.0
** Gradle version 6.5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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