如题:在线许可激活失败,提示:LicenseType is wrong,please use setLicenseType() before initialization()
代码如下:
boolean b = PermissionsUtil.startQuestPermission(new WeakReference<Activity>(this));
if(!b){
return;
}
Environment.setLicensePath(RootPath + "/Mobile GIS/License/");
Environment.initialization(this);
//设置申请许可的模块
ArrayList modules = new ArrayList();
modules.add(Module.Core_Runtime);
//设置许可激活回调
RecycleLicenseManager.getInstance(this).setActivateCallback(new RecycleLicenseManager.RecycleLicenseCallback(){
@Override
public void success(LicenseStatus licenseStatus) {
Log.d("","");
}
@Override
public void activateFailed(String s) {
Log.d("","");
}
@Override
public void recycleLicenseFailed(String s) {
Log.d("","");
}
@Override
public void bindPhoneNumberFailed(String s) {
Log.d("","");
}
@Override
public void upgradeFailed(String s) {
Log.d("","");
}
@Override
public void queryResult(ArrayList<Module> arrayList) {
Log.d("","");
}
@Override
public void queryLicenseCount(JSONArray jsonArray) {
Log.d("","");
}
@Override
public void otherErrors(String s) {
Log.d("","");
}
});
//在线激活设备,传入用户序列号和需要申请的模块列表
RecycleLicenseManager.getInstance(this).activateDevice("*********", modules);
参考链接:https://www.itdaan.com/blog/2017/06/29/8f294a425d6bfee36483ecb32427d734.html
SuperMap iMobile 10i(2020) for android,在线激活正式许可失败!请问怎么才能正常激活?是否有demo或者参考链接提供?