Android exception - no implementation for resumeApp()

I have used Projucer to create a new project “GUI Application”. Without any changes I “Saved Project and Open in IDE…” - Android Studio.
Run of the application ends with crash:

09-28 11:21:22.534 5660-5660/? E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.yourcompany.test_gui01, PID: 5660
    java.lang.UnsatisfiedLinkError: No implementation found for void com.yourcompany.test_gui01.resumeApp() (tried Java_com_yourcompany_test_1gui01_resumeApp and Java_com_yourcompany_test_1gui01_resumeApp__)
       at com.yourcompany.test_gui01.resumeApp(Native Method)
       at com.yourcompany.test_gui01.onResume(
       at android.os.Handler.dispatchMessage(
       at android.os.Looper.loop(
       at java.lang.reflect.Method.invoke(Native Method)

This same project runs correctly when is opened on Xcode. Also “Demo” example runs correctly in Android Studio.

Any suggestions why resumeApp() is missing and how to fix it?

Best Regrads,

Looks like an issue with your naming: test_gui01 has underscores, and if you look at the generated signature Java_com_yourcompany_test_1gui01_resumeApp there is an extra 1 added there… try renaming to something without underscores.


It works :slight_smile:
Thank you for very fast help!

oh stumbled upon this and it is really annoying. is it something we could address somehow in the projucer? if not at least the projucer should warn when creating projects with underscores…

ah found other additional hair loss in a unnoticed unanswered post dated 2013…

I’ve now added an error message if your activity class contains an underscore.

1 Like