Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用showUserLicenseHtmlDialog方法出错。 #34

Open
Tywei24 opened this issue May 20, 2019 · 3 comments
Open

使用showUserLicenseHtmlDialog方法出错。 #34

Tywei24 opened this issue May 20, 2019 · 3 comments

Comments

@Tywei24
Copy link

Tywei24 commented May 20, 2019

你好,我在使用mHostActivity.showUserLicenseHtmlDialog方法时候,报错。是哪里问题呢?
java.lang.NoSuchMethodError: No interface method showUserLicenseHtmlDialog(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/view/View$OnClickListener;)V in class Lcom/xiaomi/smarthome/device/api/IXmPluginHostActivity; or its super classes (declaration of 'com.xiaomi.smarthome.device.api.IXmPluginHostActivity' appears in base.apk) at com.miaomiaoce.sensor_ht.module.home.MainActivity$20.onSuccess(Unknown Source:136) at com.miaomiaoce.sensor_ht.mo

@Tywei24
Copy link
Author

Tywei24 commented May 20, 2019

我安卓插件配置的版本,
compileSdkVersion 27
buildToolsVersion '26.0.2'

defaultConfig {
    //需要配置为插件包名
    applicationId "com.miaomiaoce.sensor_ht"
    minSdkVersion 19
    targetSdkVersion 26
    //每次发布版本versionCode必须加1
    versionCode 78
    versionName "1.0.77"
}

showUserLicenseHtmlDialog这个接口的Apilevel:76,是我版本配置的有错误吗?

@lvjie0519
Copy link

lvjie0519 commented May 21, 2019

1、请说明下你使用米家APP的版本号是多少?
2、如果是原生插件,请转到https://github.com/MiEcosystem/NewXmPluginSDK/issues 提问题;
3、如果是新框架插件,请转到https://github.com/MiEcosystem/miot-plugin-sdk 提问题;

@M201370367
Copy link
Contributor

您好,issue发错地方了,该仓库已经不使用了。
插件问题请提交至
https://github.com/MiEcosystem/NewXmPluginSDK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants