报错如下:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.mychat,
PID: 12351
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.mychat/com.example.mychat.activities.ReadingActivity}: java.lang.IllegalAccessException: java.lang.Class<com.example.mychat.activities.ReadingActivity> is not accessible from java.lang.Class<android.app.AppComponentFactory>
解决办法:
将错误提示中对应的Activity声明为public即可