它给我一个错误无法解决符号共享偏好,我试图在每次用户参加测验时添加一个高分,它记录测验的高分。我不知道发生了什么。请帮我解决这个问题,我会帮助你提供声誉。
interface IMarkdownProvider extends MarkedStatic {
setRenderer?(renderer?: IMarkedRenderer);
}
interface IMarkedRenderer {
code?(code: string, language: string): string;
blockquote?(quote: string): string;
html?(html: string): string;
heading?(text: string, level: number, raw: string): string;
hr?(): string;
list?(body: string, ordered: boolean): string;
listitem?(text: string): string;
paragraph?(text: string): string;
table?(header: string, body: string): string;
tablerow?(content: string): string;
tablecell?(content: string, flags: {
header: boolean,
align: string
}): string;
strong?(text: string): string;
em?(text: string): string;
codespan?(code: string): string;
br?(): string;
del?(text: string): string;
link?(href: string, title: string, text: string): string;
image?(href: string, title: string, text: string): string;
text?(text: string): string;
}
答案 0 :(得分:0)
您的CS_Assembly_Easy类中未定义sharedpreferences 尝试将代码更改为:
SharedPreferences sharedpreferences = getSharedPreferences(mypreference,
Context.MODE_PRIVATE);