하다하다 도저히 안돼서 도움 요청함...


https://developer.android.com/reference/com/android/billingclient/api/ProductDetails#getOneTimePurchaseOfferDetails()

이걸 C++에서 JNI로 가져오려고 하는데, 시그니처가 잘못된건지 GetMethodID == 0으로 NULL이 와서 당최 진행이 안된다..

ProductDetails  |  Android DevelopersProductDetails  |  Android Developersdeveloper.android.com



아래는 안되는 소스
GetMethodID == 0 에러 발생함 

1. jmethodID jmethodGetOneTimePurchaseOfferDetails = JNI_GetMethodID(env, m_pImpl->m_jcls.get(), "getOneTimePurchaseOfferDetails","()Lcom/android/billingclient/api/ProductDetails.OneTimePurchaseOfferDetails;");

>> 안됨


2. jmethodID jmethodGetOneTimePurchaseOfferDetails = JNI_GetMethodID(env, m_pImpl->m_jcls.get(), "getOneTimePurchaseOfferDetails", "()Lcom/android/billingclient/api/ProductDetails$OneTimePurchaseOfferDetails;");

>> 안됨


3. jmethodID jmethodGetOneTimePurchaseOfferDetails = JNI_GetMethodID(env, m_pImpl->m_jcls.get(), "getOneTimePurchaseOfferDetails", "()Lcom/android/billingclient/api/OneTimePurchaseOfferDetails;");

>> 안됨



이거는 잘되는 소스

jmethodID jmethodGetOneTimePurchaseOfferDetails = JNI_GetMethodID(env, m_pImpl->m_jcls.get(), "getName", "()Lcom/android/billingclient/api/ProductDetails;");



내 예상으로는 시그니처가 이상해서 안되는거같은데...

대체 뭐가 문제인지 당최 모르겠다.


return값이 ProductDetails.OneTimePurchaseOfferDetails 타입 클래스인데 누가 알고있는사람 도움점ㅠ