Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
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.

Android annotation Encoding Problem #1746

Copy link
Copy link
@CrazyClownSola

Description

@CrazyClownSola
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.