我遇到的异常及解决办法汇总

1,Caused by: java.lang.InstantiationException: class com.test.changeskin.MainActivity$HelloReceiver has no zero argument constructor

解决办法:inner Broadcast receiver must be static ( to be registered through Manifest)和Non-static broadcast receiver must be registered and unregistered inside the Parent class

猜你喜欢

转载自blog.csdn.net/willway_wang/article/details/72867648
今日推荐