Android with Intellij:switch...case 变量的问题


eclipse 中是允许case变量R.id.xx的 intellij中不生成R文件,所有没有static final int的。 所以不能case R.id.xx?怎么破? http://youtrack.jetbrains.com/issue/IDEA-99045

解决: http://tools.android.com/tips/non-constant-fields 重构,把switch...case换成if...else

intellij-idea Android

yzblyp 10 years, 9 months ago

解决: http://tools.android.com/tips/non-constant-fields 重构,把switch...case换成if...else

黑暗执行厅 answered 10 years, 9 months ago

Your Answer