Home > Mobile >  Android Attempt to invoke virtual method '. Boolean Android OS. Bundle. GetBoolean (j
Android Attempt to invoke virtual method '. Boolean Android OS. Bundle. GetBoolean (j

Time:12-01

Android to create a new project, no add and modify any code, startup, can page up, but there will be the exception thrown




Page is normal, but with the exception, always very strange, strange, does anyone know?

CodePudding user response:

With the control without instantiation

CodePudding user response:

reference 1st floor affp response:
control not instantiate

This is a new project, what untouched, will appcompatactivity change to the activity, the same problem with appcompatactivity,
I use mobile phone test will have this kind of phenomenon, use the simulator do not have this phenomenon,

CodePudding user response:

You stick MainActivity lines of code 12
refer to the second floor xxx355200 response:
Quote: refer to 1st floor affp response:

Controls not instantiate

This is a new project, what untouched, will appcompatactivity change to the activity, the same problem with appcompatactivity,
I use mobile phone test will have this kind of phenomenon, use the simulator do not have this phenomenon,

CodePudding user response:

The
reference 3 floor affp response:
you stick MainActivity lines of code 12
Quote: refer to the second floor xxx355200 response:

Quote: refer to 1st floor affp response:

Controls not instantiate

This is a new project, what untouched, will appcompatactivity change to the activity, the same problem with appcompatactivity,
I use mobile phone test will have this kind of phenomenon, use the simulator do not have this phenomenon,


It is the setContentView (R.l ayout. Activity_main)

CodePudding user response:

The main XML posted
  • Related