android - 我在 R.java 中有错误?

标签 android eclipse android-layout android-studio android-fragments

请帮帮我,我用exportkit将文件PSD转换为Android xml文件,然后出现了错误 我如何消除这些错误? 错误的原因是什么?

  [1]: http://i.stack.imgur.com/N3oDr.png
  [2]: http://i.stack.imgur.com/rDyhn.png
  [3]: http://i.stack.imgur.com/dZ0qc.png

                    <ImageView android:id="@+id/layer_2"
                        android:src="@drawable/layer_2"
                        android:contentDescription="@string/ek_img_content"
                         android:layout_marginStart="0dp"
                        android:layout_marginTop="219dp"
                        android:layout_width="550dp"
                        android:layout_height="398dp" />

                    <TextView android:id="@+id/first_app"
                        android:fontFamily="Tahoma"
                        android:layout_gravity="center_vertical|end"
                        android:gravity="end"
                        android:textSize="34sp"
                        android:textColor="@color/first_app_color"
                        android:layout_marginStart="164dp"
                        android:layout_marginTop="86dp"
                        android:layout_width="148dp"
                        android:layout_height="52dp"
                        android:text="@string/first_app_string"
                         />

                    <TextView android:id="@+id/good_luck"
                        android:fontFamily="Tahoma"
                        android:layout_gravity="center_vertical|end"
                        android:gravity="end"
                        android:textSize="34sp"
                        android:textColor="@color/first_app_color"
                        android:layout_marginStart="142dp"
                        android:layout_marginTop="684dp"
                        android:layout_width="171dp"
                        android:layout_height="52dp"
                        android:text="@string/good_luck_string"
                         />
                </RelativeLayout>
            </ScrollView>
     </HorizontalScrollView>

最佳答案

   Try this:
      .xml file name should be small letters only allowed
  Change: App1.xml to app.xml

关于android - 我在 R.java 中有错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38803963/

相关文章:

android - 包 android.support.v4.content 不存在 flutter

android - android如何安排设备从休眠状态唤醒?

android - 如何绘制圆环图?喜欢这个给定的图像

android - 将文本框中的值插入 SQLite 数据库

android - 如何在 PercentRelativeLayout 中使用 layout_aspectRatio?

android - 对话框中的文本被截断

java - 在 LibGDX 中保存和检索图像文件

java - 向下移动相机时物体会抖动

eclipse - 是否有一种 headless (headless)方式来导入项目并刷新工作区?

javascript - Java Servlet 更改后 Web 内容未更新