清除android sdk编译,Android SDK资源转换/编译问题

开发者在使用Eclipse开发Android应用时遇到布局资源文件命名错误,提示文件名必须仅包含小写字母、数字和下划线。问题出在文件名的驼峰式命名上,解决方案是将文件名改为全小写。这个问题提醒了开发者关于Android资源文件命名规范的重要性。
摘要由CSDN通过智能技术生成

我正在开发一个Android应用,但布局资源出现问题,失败了.

我是Java,Android和Eclipse的新手.每次保存XML时,Eclipse都会简单地输出以下内容:

…“无效的文件名:必须仅包含[a-z0-9_.].”

我已经检查了没有.out文件.我已经检查过XML,它似乎是有效的.文件名是numberSelectorDialog.xml.我检查了路径是否接近Win32限制.

我的布局资源xml如下所示:

android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"

android:orientation="vertical" android:padding="12px"

android:layout_width="175px" android:layout_gravity="center_vertical|center_horizontal|center"

android:focusable="true" android:focusableInTouchMode="true"

android:gravity="center_vertical|center_horizontal|center">

android:layout_width="wrap_content" android:layout_height="wrap_content">

android:layout_width="50px" android:layout_height="50px">

android:layout_height="50px" android:layout_width="50px">

android:layout_height="50px" android:layout_width="50px">

android:layout_width="wrap_content" android:layout_height="wrap_content">

android:layout_width="50px" android:id="@+id/Button04">

android:layout_width="50px" android:id="@+id/Button05">

android:layout_width="50px" android:id="@+id/Button06">

android:layout_width="wrap_content" android:layout_height="wrap_content">

android:layout_width="50px" android:id="@+id/Button07">

android:layout_width="50px" android:id="@+id/Button08">

android:layout_width="50px" android:id="@+id/Button09">

还有其他建议吗?

谢谢,

菲利浦

解决方法:

我发现了问题…秘密在错误消息中;-)

文件名必须完全小写,不能像我一样驼峰化.

菲利浦

标签:android,resources

来源: https://codeday.me/bug/20191024/1919219.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值