res\drawable-hdpi\new.png:0: error: invalid symbol: 'new'错误原因是new是关键词呀
16lz
2021-01-23
<ImageView
android:id="@+id/new"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="5dp"
android:padding="15dp"
android:src="@drawable/new" />
</RelativeLayout>
报名的错误是:res\drawable-hdpi\new.png:0: error: invalid symbol: 'new'
上次代码的连错错误,不能用new 等Java中的关键词来命名。
更多相关文章
- android aidl 进程通信 调用错误
- 【Android】编译CM10.1遇到的错误解决方案
- android studio 不常见错误----------------v7的 TintManager 类
- Android Studio出现Gradle DSL method not found:'android()'错
- IIS中出现了时间格式转换错误该如何解决?
- net 使用 data.oracleclient 出现的错误
- C#中SQL参数传入空值出错误和如何解决办法
- ASP.NET Core异常和错误处理(8)_实用技巧
- (C++)错误的map删除操作和STL中容器的迭代器的底层实现机制