android-studio - 无法创建示例数据目录 - Android Studio

标签 android-studio arcore sample-data

我正在尝试使用 Android Studio 创建一个示例数据目录,方法是在项目 View 中单击应用程序,然后单击鼠标右键以找到菜单项新建 > 示例数据目录。

它不工作。

最佳答案

通过 android studio 创建目录并不总是有效。您可能需要在目录结构(位于/app/sampledata/)中手动创建目录,而不使用 Android Studio。创建后(例如,通过 Windows 资源管理器)它应该会显示在 Android Studio 中。有关样本数据的更多信息,请参阅以下答案:How to put new placeholder resources into Android Studio project ("tools:sample" resources)?

“与图像、字体等资源不同。示例数据不在/res/中(因此,它们不是与应用程序一起编译的。将它们放在一个完全独立的目录中可能更容易过滤掉它们)。它们进入/app/sampledata/,例如:/app/sampledata/image.png。”

关于android-studio - 无法创建示例数据目录 - Android Studio,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54973092/

相关文章:

java - 无法应用插件 [id 'com.android.library']

android - 以后如何为 Ar 增强图像数据库加载图像?

android - Unity ARCore 对象跟踪和移动问题

trac - 如何禁用 trac 中的示例数据

android-studio - 编译错误: "-Xcoroutines has no effect: coroutines are enabled anyway in 1.3 and beyond"

android-studio - Android 模拟器屏幕尺寸问题

python - Pandas 中的示例数据集

dataset - 需要电子商务类项目的示例数据

android - Android Studio 更新后突然我的 Java 和 Xml 文件改变了

android - 需要在 ARCORE 中播放视频