Android: java.lang.noclassdeffounderror… Error resolution
Today, the test suddenly told me that the XX interface I wrote would crash at the slightest app!
Nani, I must disagree! How can you crash at the click of a button? Clearly your own test!
Then I tried it with my own testing machine. It's OK (version: 5.0.2), and then I used crash's testing phone (version: 4.4). Darling, it's only 4.4! (there is no verification below 4.4! Maybe all of them!!!)
Log display:
Then, of course, Google!
StackOverFlow
Finally, the reason for this error is found:
Note that when writing an activity, if the method of two public bundle parameters is used, a crash will occur on the 4.4 machine!
As for Wei SA, I haven't studied it in detail. In essence, the method of two parameters is still the method of one parameter..
So don't be careless when writing these callbacks. Remember to copy the beginning of protected!!!