build_properties修改

hyx_brand
hyx 2 months ago
parent fcabeb045f
commit 9e67c9a8ed

@ -74,5 +74,17 @@ packaging {
#### gradle.properties修改
在文件NoteEditActivity.java中对switch语句报错Constant expression required
分析在Android studio中使用了JDK17以上的版本 switch语句的条件表达式不支持使用枚举类型
但是在代码中使用了case R.id.menu_new_note:
解决方法在gradle.propertties中添加语句/改变switch用if-else来做条件语句选择前者
```
android.nonFinalResIds=false //让资源 ID 恢复为 `final` 常量
```

Loading…
Cancel
Save