res\drawable-hdpi\new.png:0: error: invalid symbol: 'new'错误原因是new是关键词呀
16lz
2021-12-04
<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(
- Could not GET 'https://dl.google.com/dl/android/maven2/com/a
- xmlns:android的说明
- Eclipse导入Android项目 Eclipse常见错误 中文乱码问题
- Android(安卓)Studio:一个空格导致的错误
- Failed to find an AVD compatible with target 'Android(安卓)1