【问题标题】:android: how to import zip file into raw file and make it recognizable?android:如何将zip文件导入原始文件并使其可识别?
【发布时间】:2011-07-06 09:09:53
【问题描述】:

我想将一个 zip 文件 (test.zip, res\raw 文件夹中,并且我正在使用 Eclipse -> import

导入 zip 文件后,我将其用作 Resources.openRawResource(R.raw.test);,但始终出现错误提示:test can not be resolved or is not a field...

我很困惑,我不知道为什么会这样。请帮忙,非常感谢!

【问题讨论】:

    标签: android zip


    【解决方案1】:

    经过长时间的研究,我可能知道原因,可能是因为这个 test.zip 文件中有子文件夹。对于 res/raw,它不支持子文件夹。如果您有更好的答案或者您认为我的答案不正确,请告诉我,谢谢!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多