android - 更改 build.gradle 文件上的 applicationId 后出现错误
问题描述
def localProperties = new **Properties()**
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
throw new **FileNotFoundException**("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}
我收到 Properties() 类和 FileNotFoundException 的错误。尝试更改我的应用程序 ID 后出现此错误。我该如何解决这个问题。
解决方案
local.properties
android文件夹下应该有一个文件。
推荐阅读
- java - 无法使用 springboot 将新列添加到现有模式
- javascript - 无法从我的节点 js 服务器下载文件(我的后端和前端是分离的)
- spring-boot - 杰克逊反序列化问题 - 永远不应该在 setterless 属性上调用`set()`
- python - 在 Python 中导入自定义函数模块
- python - 3d 多边形 - python 中的多边形交集
- user-interface - Tkinter 问题。按钮操作前的输出显示
- snowflake-cloud-data-platform - Snowflake 中的调度程序作业
- django - ![远程拒绝] master -> main (pre-receive hook denied) 错误:未能将一些参考推送到'https://git.heroku.com/immense-anchorage-56196.git
- python - 用 Python 漂亮的汤做了一个表,我如何将它整齐地写入 CSV?
- yolo - 在 Visual Studio 代码上进行 Yolo v3 测试