diff --git a/frameworks/ets/ani/ani_common/src/ani_common_remote.cpp b/frameworks/ets/ani/ani_common/src/ani_common_remote.cpp index e78b9a839a19887a87d085f7858149459d2b49c4..f74600380b2d68ca5ee3d2364a5600f9ce27a8ff 100644 --- a/frameworks/ets/ani/ani_common/src/ani_common_remote.cpp +++ b/frameworks/ets/ani/ani_common/src/ani_common_remote.cpp @@ -28,7 +28,7 @@ ani_object AniRemote::CreateAniRemoteObject(ani_env *env, const sptrClass_FindMethod(cls, "", ":V", &method)) != ANI_OK) { + if ((status = env->Class_FindMethod(cls, "", "l:", &method)) != ANI_OK) { TAG_LOGE(AAFwkTag::ABILITY, "RemoteProxy ctor: %{public}d", status); return nullptr; }