0

自动生成的代码如下:

public partial class Id
{
    // aapt resource value: 0x7f050002  [issue is here]
    public const int HotDog/NametextView = 2131034114;

    // aapt resource value: 0x7f050001
    public const int HotDogImageView = 2131034113;

    // aapt resource value: 0x7f050008
    public const int MyButton = 2131034120;

    // aapt resource value: 0x7f050006
    public const int amountEditText = 2131034118;

    // aapt resource value: 0x7f050005
    public const int cancelButton = 2131034117;

    // aapt resource value: 0x7f050000
    public const int mainScrollView = 2131034112;

    // aapt resource value: 0x7f050007
    public const int orderButton = 2131034119;

    // aapt resource value: 0x7f050004
    public const int pricetextView = 2131034116;

    // aapt resource value: 0x7f050003
    public const int shortDescriptiontextView = 2131034115;

    static Id()
    {
        global::Android.Runtime.ResourceIdManager.UpdateIdValues();
    }

    public const int HotDog/NametextView = 2131034114;

斜线会自动生成。

如果我手动删除它会有任何副作用吗?

它在“R.java”中给出错误

 public static final class id {
        public static final int HotDog/NametextView=0x7f050002;
        public static final int HotDogImageView=0x7f050001;
        public static final int MyButton=0x7f050008;
        public static final int amountEditText=0x7f050006;
        public static final int cancelButton=0x7f050005;
        public static final int mainScrollView=0x7f050000;

我可以删除两个“/”并继续吗?它会带来任何问题吗?

4

0 回答 0