1、需要在androidmainfeast。xml设置name
<application android:allowBackup="true" android:name="com.ztravel.a.MyApplication" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme">
Done