Android Studio: rendering problems

This is a very simple material. An exception is thrown during rendering: java.util.Locale.toLanguageTag () Ljava / languages ​​/ String;

XML:

<LinearLayout 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" android:orientation="horizontal"> <EditText android:id="@+id/edit_message" android:layout_weight="1" android:layout_width="0dp" android:layout_height="wrap_content" android:hint="@string/edit_message" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/button_send" /> </LinearLayout> 

It seems that the problem is with the EditText object. Help will be appreciated.

+5
source share
2 answers

This may be helpful for someone with the same problem. I am using IntelliJ IDEA and I also had this problem ...

After some time playing with the settings, I remembered that I had this problem when I first started developing Android.

What caused this was that I was developing for an Android phone, but the rendering setting was set to Android Wear, after it was changed to non-wear-resistant, the problem was solved.

enter image description here

+17
source

This is a bug in the release build environment: Lava.Lang.Locale.toLanguageTag()

It appears only after Java 1.7, and the Android API based on Java 6, do not support it.

Perhaps this link may help you: https://bugzilla.xamarin.com/show_bug.cgi?id=12649

+3
source

Source: https://habr.com/ru/post/1206541/


All Articles