public class AppContext extends Application{ } 需要在AndroidManifest中的application标签下声明android:name=".common.AppContext"