Home > other >  Cocos2d - x c + + in eclipse open the cocos project problems
Cocos2d - x c + + in eclipse open the cocos project problems

Time:09-23

In eclipse select buildi all run to being generated an error occurred when the APK!

The following is the information of the console to:


Console error message is: can't find the symbol hints of symbol is in Cocos2dAcitity.
in the JavaIs the following code in the Build. VERSION_CODES. KITKAT , and | the SYSTEM_UI_FLAG_IMMERSIVE_STICKY error
symbols

If (Build) VERSION) SDK_INT & gt;= Build. VERSION_CODES. KITKAT ) {//KITKAT

GetWindow (). GetDecorView (.) setSystemUiVisibility (
The SYSTEM_UI_FLAG_LAYOUT_STABLE
| the SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
| the SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
| the SYSTEM_UI_FLAG_IMMERSIVE_STICKY
| the SYSTEM_UI_FLAG_HIDE_NAVIGATION//hide the nav bar
| the SYSTEM_UI_FLAG_FULLSCREEN//hide status bar
);
}


But my the Java there are public static final ints SYSTEM_UI_FLAG_IMMERSIVE_STICKY=0 x00001000;
The same Build. VERSION_CODES. KITKAT is some,

I commented out the code or the error,

Shameless ah, I have been this problem for a few days, a great god, please save my

CodePudding user response:

Nobody answer? Don't sink!

CodePudding user response:

Tip is very clear

CodePudding user response:

The building Lord solved??? I also encountered the same error,

CodePudding user response:

reference qq_36005807 reply: 3/f
the building Lord solved??????? I also encountered the same error,

For a long time before I forget, I had a try, change the API to 17 is wrong, you change the API to more than 19 version, I use it on the 21st version, specific steps: project on eclipse - & gt; The properties - & gt; Android then the project build target change, API than 19, platfrom (platform) seems to be more than 4.42, is my 5.0.1
  • Related