2013年8月30日星期五

Android Online Solving case expressions must be constantexpressions

R.java disappeared following keyword final
correct wording
public static final int push_down_on = 0x7f040004;

become what it is today,
public static int push_down_on = 0x7f040004;
seeking recovery.
------ Solution ---------------------------------------- ----


Clean and then compile it
------ Solution ------------------------------- -------------
R.JAVA file problems, probably because xml files have the same ID number, this should be noted
------ reference - -------------------------------------
R.java is automatically generated during program compilation , you have to compile what can not it do
------ reference ------------------------------ ---------
compiled a lot of times
------ reference ----------------------- ----------------
or not can only be changed if else
------ reference ------- --------------------------------
I have encountered this problem now Which still does not solve ah brother help me
------ reference -------------------------- -------------
http://www.eoeandroid.com/forum.php?mod=viewthread&tid=77997&highlight =
------ reference ---------------------------------------
same question, originally good, the Set it to the emergence of this problem library
------ reference ------------------------------- --------
I am also a library on the project is set to appear this problem, it should be how to solve the country, seeking god? ? ? ? ?
------ reference --------------------------------------- < br>

I am also a library on the project is set to appear this problem, it should be how to solve the country, seeking god? ? ? ? ?
------ reference -------------------------------------- -

  
I am also a library on the project is set to appear this problem, it should be how to solve the country, seeking god? ? ? ? ?  

new sdk above are subject to change at the library, all you want to set library package, which the switch ... case statement can only be changed if ... else down. You can hover in the wrong place, ecplise prompted this one.
------ reference --------------------------------------- < br>
    
I am also a library on the project is set to appear this problem, it should be how to solve the country, seeking god? ? ? ? ?    
  
  
new sdk above are subject to change at the library, all you want to set library package, which the switch ... case statement can only be changed if ... else down. You can hover in the wrong place, ecplise prompted this one.  

my project changed if / else will be able to thank you ah
------ reference ------------------ ---------------------
11 F method is feasible. see link http://tools.android.com/recent/switchstatementconversion

没有评论:

发表评论