This repository was archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Android annotation Encoding Problem #1746
Copy link
Copy link
Closed
Labels
Description
in case of Android annotation 3.2
if I write like this
MyActivity.class
/**
* 获取布局
*/
@Extra("menu")
int menu_id;
then in MyActivity_.class
public MyActivity_.IntentBuilder_ menu_id(int menu_id) {
return super.extra(MENU_ID_EXTRA, menu_id);
}
But in Android annotation 4.0
the same code
but in MyActivity_.class
/**
*
* ���ݴ�����
* @param menu_id
* the value for this extra
* @return
* the IntentBuilder to chain calls
*/
public DetailListActivity_.IntentBuilder_ menu_id(int menu_id) {
return super.extra(MENU_ID_EXTRA, menu_id);
}
and this cause some error in Android Studio
like this
Error:(188, 12) 错误: 编码UTF-8的不可映射字符
Error:(188, 13) 错误: 编码UTF-8的不可映射字符
Error:(188, 14) 错误: 编码UTF-8的不可映射字符
Error:(188, 16) 错误: 编码UTF-8的不可映射字符
Error:(188, 17) 错误: 编码UTF-8的不可映射字符
Error:(188, 18) 错误: 编码UTF-8的不可映射字符
Error:(188, 19) 错误: 编码UTF-8的不可映射字符
Error:(188, 20) 错误: 编码UTF-8的不可映射字符
8 个错误
:main:compileRetrolambdaDebug
Error:Execution failed for task ':main:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
Could I do something to deal with this problem?
Thanks