繁体   English   中英

从 android 工作室的属性文件中读取 URL

[英]Read the URL from the properties file in android studio

我们可以在创建 apk 后对其进行修改吗? 因为我想制作这样一个 APK,通过属性文件读取 URL 但它不需要重建,例如。 我想更改端口号,所以我将通过属性文件更改它还是有其他方法?

是的,您可以使用

可能重复: https://cutt.ly/Vv8FQ0u

ant.propertyfile(
        file: "myfile.properties") {
        entry( key: "propertyName", value: "propertyValue")
        entry( key: "anotherProperty", operation: "del")
    }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM