Nitin001
I hate code!
Profile
Posts: 37
Reg: Mar 24, 2014
INDORE
370
03/30/14 03:44 PM (10 years ago)

case expressions must be constant expressions - problem

case expressions must be constant expressions - problem and The method setPluginsEnabled(boolean) is undefined for the type WebSettings - problem
 
JackieAuthor
Lost but trying
Profile
Posts: 6
Reg: Mar 13, 2014
location unknow...
60
like
03/31/14 10:13 AM (10 years ago)
I just had this exact same problem. If you go to the code, the offending line with be underscored in red. Clicking on it (or right-clicking ... can't remember which), brings up actions you can take to correct the error.
 
Kozbot
Lost but trying
Profile
Posts: 9
Reg: Apr 17, 2014
Sydney
90
like
04/18/14 05:55 PM (10 years ago)
I've got the same issue - switch (itemId){ case R.id.successImage: this.wobbleImage(); return; } Apparently, case expressions must be constant expressions, and all I get is "Migrate Android Code" which gives me an OK and doesn't change a thing... Any ideas??? It's the last error I've got... SO CLOSE!!!
 
Kozbot
Lost but trying
Profile
Posts: 9
Reg: Apr 17, 2014
Sydney
90
like
04/18/14 05:58 PM (10 years ago)
Actually scrap that, I followed the instructions... heh... Thanks :)
 
SrikarSree
Aspiring developer
Profile
Posts: 79
Reg: Jul 22, 2012
Bangalore
7,090
like
11/07/14 11:51 PM (9 years ago)
@Kozbot, can you please explain how you got rid of this error, i am trying to follow but could not get anyware
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.