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(test_gui01.java:1085)
       at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
       at android.app.Activity.performResume(Activity.java:6768)
       at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3377)
       at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3440)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2713)
       at android.app.ActivityThread.-wrap12(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6077)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

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,
Dawid

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.

2 Likes

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

awesome!