Java 导入的项目资源$NotFoundException

Java 导入的项目资源$NotFoundException,java,android,import,compiler-errors,Java,Android,Import,Compiler Errors,我在学校做过一个程序,但当我试图在家里的电脑上启动它时,我发现了这个错误(我在usb上复制了这个项目): R文件: public final class R { public static final class anim { public static final int abc_fade_in=0x7f040000; public static final int abc_fade_out=0x7f040001; public static final int abc

我在学校做过一个程序,但当我试图在家里的电脑上启动它时,我发现了这个错误(我在usb上复制了这个项目):

R文件:

public final class R {
public static final class anim {
    public static final int abc_fade_in=0x7f040000;
    public static final int abc_fade_out=0x7f040001;
    public static final int abc_slide_in_bottom=0x7f040002;
    public static final int abc_slide_in_top=0x7f040003;
    public static final int abc_slide_out_bottom=0x7f040004;
    public static final int abc_slide_out_top=0x7f040005;
}
public static final class array {
    public static final int a_9083646153=0x7f050002;
    public static final int agregat_xy=0x7f050000;
    public static final int b_9083646153=0x7f050003; //yes, the names do have some meaning
}
/*...*/
SIA_tabbedavity:

public class SIA_tabbedActivity extends ActionBarActivity
{

/**
 * The {@link android.support.v4.view.PagerAdapter} that will provide
 * fragments for each of the sections. We use a
 * {@link FragmentPagerAdapter} derivative, which will keep every
 * loaded fragment in memory. If this becomes too memory intensive, it
 * may be best to switch to a
 * {@link android.support.v4.app.FragmentStatePagerAdapter}.
 */
SectionsPagerAdapter mSectionsPagerAdapter;
private String[] strArray;
private String scanResult;      // Speichert das Ergebnis des Barcodescanns
/**
 * The {@link ViewPager} that will host the section contents.
 */
ViewPager mViewPager;

@Override
protected void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    /*Error -> */ strArray = getResources().getStringArray(R.array.b_9083646153);

    setContentView(R.layout.activity_sia_tabbed);


    // Create the adapter that will return a fragment for each of the three
    // primary sections of the activity.
    mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());

    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.pager);
    mViewPager.setAdapter(mSectionsPagerAdapter);
} /*...*/

它在学校很管用。我已经尝试清理和重建项目,并删除了R文件,以重新生成它,但没有任何工作。是的,在.xml中有一个名称正确的字符串数组。

在.xml中有一个名称正确的字符串数组
,这就是
正确的名称
?我的意思是有一个名称为“b_9083646153”的数组,所以没有人回答“你检查过数组是否与SIA_选项卡活动中的名称相同吗?”没有,我指的是xml文件名.A_9083646153.xml,但文件名应该无关紧要,确实如此。您使用了无效字符:不允许使用大写字符!将其重命名为a_9083646153.xml,问题就解决了。
public class SIA_tabbedActivity extends ActionBarActivity
{

/**
 * The {@link android.support.v4.view.PagerAdapter} that will provide
 * fragments for each of the sections. We use a
 * {@link FragmentPagerAdapter} derivative, which will keep every
 * loaded fragment in memory. If this becomes too memory intensive, it
 * may be best to switch to a
 * {@link android.support.v4.app.FragmentStatePagerAdapter}.
 */
SectionsPagerAdapter mSectionsPagerAdapter;
private String[] strArray;
private String scanResult;      // Speichert das Ergebnis des Barcodescanns
/**
 * The {@link ViewPager} that will host the section contents.
 */
ViewPager mViewPager;

@Override
protected void onCreate(Bundle savedInstanceState)
{
    super.onCreate(savedInstanceState);
    /*Error -> */ strArray = getResources().getStringArray(R.array.b_9083646153);

    setContentView(R.layout.activity_sia_tabbed);


    // Create the adapter that will return a fragment for each of the three
    // primary sections of the activity.
    mSectionsPagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager());

    // Set up the ViewPager with the sections adapter.
    mViewPager = (ViewPager) findViewById(R.id.pager);
    mViewPager.setAdapter(mSectionsPagerAdapter);
} /*...*/