See below My Manifest.xml
I Already used ApplicationLoader.
<application
android:name=".ui.ApplicationLoader"
android:allowBackup="true"
android:icon="@drawable/app_icon"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<application
android:name="org.abtollc.sdk.AbtoApplication"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
Now i want to use both application class in single project ? How its possible
org.abtollc.sdk.AbtoApplication is third-party libs.
这并非不可能,在这种情况下,您的ApplicationLoader
必须扩展AbtoApplication
。
根据Android文档清单文件,只有一个应用程序元素是有效的。
You simply can't. Try extending AbtoApplication
from your application class.
Android应用程序只能处理1个应用程序类,如果需要多个应用程序类,则必须从AbtoApplication类扩展ApplicationLoader类。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.