How to initialize mPaaS when using the native AAR method in an Android project?
Add the following code to the Application class. If you use the hotpatching feature (QuinoxlessApplication), you do not need to initialize mPaaS.
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
// Initialize mPaaS
MP.init(this);
}
}For more information, see Initialize mPaaS.
How to resolve freezes when starting Scan in the Android 10.1.68 baseline?
In AAR mode, you must initialize mPaaS if you reference other components in addition to the Scan component. Otherwise, the main thread may freeze.
该文章对您有帮助吗?