更新时间:2023-11-20 10:29:10
这是我解决此问题的方式(在Android Studio 3.3-Build#AI-182.5107.16.33.5199772,建于2018年12月25日)上:
Here's how I resolved the problem (on Android Studio 3.3 - Build #AI-182.5107.16.33.5199772, built on December 25, 2018):
注意: 我遇到了同样的问题,并且我注意到TEXT_ALIGNMENT常量仅在API级别17中引入(请参见 https://developer.android.com/reference/android/view/View ).
Note: I had the same problem and I noticed that the TEXT_ALIGNMENT constants were only introduced in API level 17 (see https://developer.android.com/reference/android/view/View).
让我知道这是否有帮助.
Let me know if this helps.