FAQ

Last Updated on : 2023-05-22 06:38:23download

How do I deal with a signature error or a permission verification failure?

Make sure that the AppKey, AppSecret, and security image are consistent with those used on the Tuya IoT Development Platform. Any mismatch will cause the authentication to be failed. For more information, see Fast Integration with Smart Life App SDK for Android.

How do I deal with the following error message returned after the SDK update?

java.lang.IllegalAccessError: Class okhttp3.EventListener extended by class com.tuya.smart.android.network.http.HttpEventListener is inaccessible (declaration of 'com.tuya.smart.android.network.http.HttpEventListener'***)

Run the following command to update the version number of okhttp that the SDK depends on:

implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.12.3'

Why cannot panel information (ProductPanelInfoBean) be returned after the SDK updates to v3.34.5?

By default, due to the update of the SDK, the panel information is not returned in the request for device data. To get the device data, call the following API method before the request for device data:

// In this call, the panel information will be automatically returned when a list of devices is requested.
TuyaHomeSdk.getDataInstance().setAutoLoadPanelInfo(true)