【发布时间】:2018-10-24 19:15:30
【问题描述】:
我有一个 .properties 文件,我需要它位于已构建 APK 的根级别。
问题是文件以下划线开头时没有添加(例如_xyz.properties), 但没有下划线,它被添加到根。
例如:
If I place a properties file within my project, called xyz.properties
and I add that file as a resource by adding the following in build.gradle:
sourceSets {
main {
resources.srcDirs = ['src/main/java/xyzLocation']
}
}
When I build and inspect the created APK, the xyz.properties file is present at the root.
If I rename the file to _xyz.properties and build an APK again
【问题讨论】:
-
欢迎来到 StackOverflow!请添加一些代码来显示您的努力并指出您卡在哪里