# env-\>GetMethodID returns null

**URL:** <https://forums.unrealengine.com/t/env-getmethodid-returns-null/766844>\
**Category:** Mobile\
**Tags:** unreal-engine, java, CPP, question\
**Created:** [February 8, 2023, 11:02pm UTC](https://forums.unrealengine.com/t/env-getmethodid-returns-null/766844 "2023-02-08T23:02:15Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![eray\_ozr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@eray\_ozr](https://forums.unrealengine.com/u/eray_ozr)\
**Post date:** [February 8, 2023, 11:32pm UTC](https://forums.unrealengine.com/t/env-getmethodid-returns-null/766844/2 "2023-02-08T23:32:09Z")

</div>

I did some research and found out that proguard can change codes in order to protect it. So, it can be my problem but I don’t know how to disable it for my method.

> [@Run Java code from C++ using JNI (Android)](https://forums.unrealengine.com/t/run-java-code-from-c-using-jni-android/340143/3):
>
> My code compiles, it crashes during runtime, probably you have an other issue

---

_[View the full topic](https://forums.unrealengine.com/t/env-getmethodid-returns-null/766844)._
