Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Android X framework has compatibility issues #51

Closed
DreamPWJ opened this issue Dec 23, 2020 · 3 comments
Closed

The Android X framework has compatibility issues #51

DreamPWJ opened this issue Dec 23, 2020 · 3 comments

Comments

@DreamPWJ
Copy link

android:text="@{$ Packaging appears to become. ???? Abnormal display

@DreamPWJ
Copy link
Author

image

@thyrlian
Copy link
Owner

Hi, I've tested strings like ¥Ұ in a demo project inside the Docker container (thyrlian/android-sdk:6.0), it has no problem at all, ./gradlew build command was executed without any error => BUILD SUCCESSFUL.

@thyrlian
Copy link
Owner

This is an open-source project, I'm not paid for working on it. Every minute I spend on it should be respected and valued.

Thus, a clear description of the problem and precise steps to reproduce the bug are preferred.

For your case:

  • The title says "The Android X framework has compatibility issues"
    • This Docker image provides merely an environment, it doesn't even come with AndroidX. Why do you think it's related?
    • From your description below the title, I can't find any feature that is from AndroidX or any clue that is telling the issue was caused by AndroidX library. You should narrow down the problem.
  • The description says "android:text="@{$ Packaging appears to become. ???? Abnormal display"
    • You didn't even provide me the problematic string ¥Ұ, which is required for debugging. Luckily I'm Chinese, I know where to get it.
    • What does "Abnormal display" mean? Abnormal during gradle build (display junk character in build logs)? Or when running on a device (if so, what kind of device is that?)
    • Nobody is yourself. When reporting an issue, you should provide as detailed information as possible. For example, what gradle build command have you executed? Or what else build or run steps I should try? Without those info, I would have to try all possibilities, which are time-consuming.
  • The buggy line shows the use of @{} syntax for layout expression. To isolate the problem, you should try two things:
    • Hardcode the "abnormal" string ¥Ұ into a text field without using layout expression, to see if it's working or not;
    • Use the layout expression together with other ASCII characters instead of Unicode characters, to see if it's working or not.

With the above procedure, I'm pretty sure that your bug report would be more precise and easy to follow. Or probably you would even have the problem solved by yourself already.

After reading it again carefully, I believe the root cause is from your encoding:
You are using the fullwidth form of the single quote instead of the halfwidth form of the single quote.

Last but not least, the lesson I've learned is that I should create a bug reporting guideline (template), not simply assuming everyone thinks thoroughly and provides a precise bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants