# New Interpreter() resultes App crash

**URL:** <https://discuss.ai.google.dev/t/new-interpreter-resultes-app-crash/32587>\
**Category:** General Discussion\
**Tags:** android, tflite\
**Created:** [August 21, 2023, 6:46am UTC](https://discuss.ai.google.dev/t/new-interpreter-resultes-app-crash/32587 "2023-08-21T06:46:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YPK](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/ypk/32/15893_2.png) [@YPK](https://discuss.ai.google.dev/u/YPK)\
**Post date:** [August 21, 2023, 6:46am UTC](https://discuss.ai.google.dev/t/new-interpreter-resultes-app-crash/32587/1 "2023-08-21T06:46:55Z")

</div>

Hi,

I met such issue during use TensorFlow Lite in Android.

Firstly I used my code and it worked.

After about 4 months – July, while try a Git example project, many Android Studio modules/plugins are automatically downloaded/updated. Example project also worked. While returning back to my project, it always crashes while creating new Interpreter.

```auto
MappedByteBuffer model = loadModel(pathModel);
Interpreter.Options options = new Interpreter.Options();
options.setNumThreads(1);
this.interpreter = new Interpreter(model, options);

```

My project uses almost same TensorFlow Lite API with example project. No obvious strange difference is observed about TFLite API. My converted model also runs well with example project. All test are performed with same Phone & OS version.

Other difference observed, after Android Studio change, if “options.addDelegate(new GpuDelegate());” exists, it also crashes.

Example project highest API Level is 28. And uses

```auto
    implementation('org.tensorflow:tensorflow-lite:0.0.0-nightly') { changing = true }
    implementation('org.tensorflow:tensorflow-lite-gpu:0.0.0-nightly') { changing = true }
    implementation('org.tensorflow:tensorflow-lite-support:0.0.0-nightly') { changing = true }

```

Does there anyone meet same problem with me?

---

<div class="post-metadata">

**Author:** ![chunduriv](https://avatars.discourse-cdn.com/v4/letter/c/bbe5ce/32.png) [@chunduriv](https://discuss.ai.google.dev/u/chunduriv)\
**Post date:** [August 21, 2023, 8:25am UTC](https://discuss.ai.google.dev/t/new-interpreter-resultes-app-crash/32587/3 "2023-08-21T08:25:22Z")

</div>

@YPK,

Welcome to the Tensorflow Forum,

I see that your are using nightly version. Could you please check with latest stable version (2.13) and let us know? Nightly versions are not stable as the code changes will be done overnight which might result in app crash.

Thank you!
