繁体   English   中英

Android Studio:渲染问题

[英]Android Studio: Rendering Problems

这是一些非常基本的东西。 渲染期间引发异常:java.util.Locale.toLanguageTag()Ljava / lang / 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>

似乎问题出在EditText对象上。 帮助将不胜感激。

这可能对有相同问题的人有所帮助。 我使用IntelliJ IDEA,我也有这个问题......

经过一段时间的设置,我记得我第一次启动Android开发时遇到了这个问题。

造成这种情况的原因是我正在为Android手机开发,但渲染设置设置为Android Wear,在将其更改为非磨损设置后,问题就解决了。

在此输入图像描述

这是发布构建环境中的一个错误: Lava.Lang.Locale.toLanguageTag()

它仅在Java 1.7之后出现,并且基于Java 6的Android API不支持它。

也许这个链接可以帮助你: https//bugzilla.xamarin.com/show_bug.cgi?id = 12649

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM