错误:以xamarin形式出现的<identifier>

时间:2019-09-05 10:59:11

标签: c# android .net xamarin

我是Xamarin的新手,却遇到此错误

错误:预期 包com.companyname.final;

此错误存在于我尚未修改的自动生成的文件中

package com.companyname.final; ////ERROR HERE

public final class R {
public static final class anim {
public static final int abc_fade_in=0x7f010000;
public static final int abc_fade_out=0x7f010001;
public static final int abc_grow_fade_in_from_bottom=0x7f010002;
public static final int abc_popup_enter=0x7f010003;
public static final int abc_popup_exit=0x7f010004;
public static final int abc_shrink_fade_out_from_bottom=0x7f010005;
public static final int abc_slide_in_bottom=0x7f010006;
public static final int abc_slide_in_top=0x7f010007;
public static final int abc_slide_out_bottom=0x7f010008;
public static final int abc_slide_out_top=0x7f010009;
public static final int abc_tooltip_enter=0x7f01000a;
public static final int abc_tooltip_exit=0x7f01000b;
public static final int design_bottom_sheet_slide_in=0x7f01000c;
public static final int design_bottom_sheet_slide_out=0x7f01000d;
public static final int design_snackbar_in=0x7f01000e;
public static final int design_snackbar_out=0x7f01000f;
public static final int enterfromleft=0x7f010010;
public static final int enterfromright=0x7f010011;
public static final int exittoleft=0x7f010012;
public static final int exittoright=0x7f010013;
}

1 个答案:

答案 0 :(得分:0)

此处使用“ final”作为程序包名称是错误。更改了项目名称,一切正常