Android Studio 布局设计师用波斯语创建数字
Android Studio layout designer creates numbers in Persian
当我使用 Android Studio 布局设计器手动设计布局时,页边距数字以波斯语格式创建,设计器无法正常工作。
自从我更新 Android Studio 以来,这种情况一直在发生。
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tryAgain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="۳۲dp"
tools:layout_editor_absoluteY="۳۴dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
注意我的操作系统是Windows并且有两种语言,波斯语和英语
我终于找到了解决办法。这是由于新版 Android Studio 受到 Google 制裁。
Windows10解决方法:设置->时间&语言->地区->select美国在国家或地区下拉
Android Studio 在新版本中禁止了伊朗。有几种方法可以隐藏您的身份。例如,更改操作系统的时钟
这是 Android Studio 版本等于或高于 4.2 的 logcat 中本地日期时间格式(例如本例中的波斯语)的新错误。
我们必须在区域设置中使用英语(美国)格式来避免这个问题。 (在 ver 4.2 和 Arctic fox 中测试)
解决方案:在 windows 10 中转到控制面板 > 区域 > 格式选项卡 > 将格式更改为英语(美国)
当我使用 Android Studio 布局设计器手动设计布局时,页边距数字以波斯语格式创建,设计器无法正常工作。 自从我更新 Android Studio 以来,这种情况一直在发生。
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/tryAgain"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
tools:layout_editor_absoluteX="۳۲dp"
tools:layout_editor_absoluteY="۳۴dp" />
</androidx.constraintlayout.widget.ConstraintLayout>
注意我的操作系统是Windows并且有两种语言,波斯语和英语
我终于找到了解决办法。这是由于新版 Android Studio 受到 Google 制裁。
Windows10解决方法:设置->时间&语言->地区->select美国在国家或地区下拉
Android Studio 在新版本中禁止了伊朗。有几种方法可以隐藏您的身份。例如,更改操作系统的时钟
这是 Android Studio 版本等于或高于 4.2 的 logcat 中本地日期时间格式(例如本例中的波斯语)的新错误。
我们必须在区域设置中使用英语(美国)格式来避免这个问题。 (在 ver 4.2 和 Arctic fox 中测试)
解决方案:在 windows 10 中转到控制面板 > 区域 > 格式选项卡 > 将格式更改为英语(美国)