我是 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;
}
使用“final”作为包名称是这里的错误。更改了项目名称,一切正常
我遇到了同样的问题,因为我在项目中使用了保留字
catch
,因此它生成为com.compmay.name.catch
。