问题描述:如题 解决办法:要在AndroidManifest.xml的application标签里添加 android:name=".MyApplication",MyApplication为对应的Application类名