Error: Activity class CoronaActivity does not exist.

We have had an app in the Google Play Store for several years. Now there are increasing reports that this app is not compatible with the current Android 12.

A fresh build and deployed APK with the current Corona Simulator (Version 2021.3661 (2021.11.17)) also cannot be started on the development device (Pixel 3a with Android 12).

On all other devices (Android < 12) the App is still running without any issues.

Dec 17 13:22:12.612 Using openjdk version “1.8.0_242-release”
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Dec 17 13:22:18.511 Using openjdk version “1.8.0_242-release”
OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
OpenJDK 64-Bit Server VM (build 25.242-b3-6915495, mixed mode)
Dec 17 13:22:23.762 BUILD SUCCESSFUL
Total time: 3 seconds
Dec 17 13:23:40.458 Android build succeeded in 81 seconds
Dec 17 13:23:51.261 Installing and running XXX on Pixel 3a
Installing and running XXX to Pixel 3a successfull!
rm: /data/local/tmp/CoronaSDKbd0f1cbfc3f8d9928e8b5a193375dfdd.apk: No such file or directory
Starting: Intent { cmp=11/com.ansca.corona.CoronaActivity }
Error type 3
Error: Activity class {11/com.ansca.corona.CoronaActivity} does not exist.

I just tried a couple of my apps on a Pixel 3a and it worked as expected? What plugins are you using? What does your build settings look like?

As I already mentioned this app is in the play store for almost 2 years and is working for android versions up to 11. We’re using only the splash screen plugin (https://docs.coronalabs.com/plugin/CoronaSplashControl/index.html).

And the same thing happens when you build a sample app? I use about a dozen plugins. Unless I have a special Pixel 3a, I don’t experience the problem. Is there a special character in your package name?

The same thing happens when we a build our published app with the current toolchain (Solar2D 2021.3661) and deploying it to a Pixel 3a locally.

Starting: Intent { cmp=11/com.ansca.corona.CoronaActivity } - Due to the same code base, without any modifications - I have no idea.

I am just trying to help. The activity CoronaActivity didn’t go anywhere. It is still there. I suspect it has something to do with the package name or a build setting that is trying to change the path. I don’t know what changed in Corona recently or how Android 12 reads that path. What is “cmp=11” is that part of your package name? View the manifest of the working app against the non-working what is the path of the Activity?

Thanks for your help. Deploying the recent build of our app results in an Error (Corona Simulator - Log):

Installing and running XXX to Pixel 3a successfull!
rm: /data/local/tmp/CoronaSDKbd0f1cbfc3f8d9928e8b5a193375dfdd.apk: No such file or directory
Starting: Intent { cmp=11/com.ansca.corona.CoronaActivity }
Error type 3
Error: Activity class {11/com.ansca.corona.CoronaActivity} does not exist.

The assumption that Android changed something sounds interesting.

Look at the apk and see the package name and also look at the activity name. I have included what one of my apps look like for reference. Another option if the app is free or you want to send it to me, I can take a look:

Yeah the app is free and can be found here: https://play.google.com/store/apps/details?id=com.miethke.graviton&hl=de&gl=US.

I also analyzed the manifest. It looks pretty same like yours.Screenshot 2021-12-21 at 13.12.10 Screenshot 2021-12-21 at 13.11.52

Thanks for your support

This is the error I see when I run it on a Pixel4A. It runs perfectly fine on all other devices that I tried it on. But crashes on the Pixel4A. It looks like it is in the header function.

2021-12-22 21:50:18.029 3142-3185/? I/Corona: Platform: Pixel 3a / ARM64 / 12 / Adreno (TM) 615 / OpenGL ES 3.2 V@0490.0 (GIT@781e7d0, I46ff5fc46f, 1606842862) (Date:12/01/20) / 2020.3630 / English | US | en_US | en
2021-12-22 21:50:18.037 3142-3185/? V/Corona: > Class.forName: shared.google.play.services.base.LuaLoader
2021-12-22 21:50:18.037 3142-3142/? W/Choreographer: Frame time is 0.145112 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
2021-12-22 21:50:18.048 3142-3185/? V/Corona: > Class.forName: CoronaProvider.licensing.google.LuaLoader
2021-12-22 21:50:18.048 3142-3185/? V/Corona: < Class.forName: CoronaProvider.licensing.google.LuaLoader
2021-12-22 21:50:18.052 3142-3185/? V/Corona: Loading via reflection: CoronaProvider.licensing.google.LuaLoader
2021-12-22 21:50:18.059 3142-3185/? I/Corona: Launching Miethke Hydrocephalus Gravitational Valve Guide App v4!
2021-12-22 21:50:18.072 3142-3185/? I/Corona: ERROR: Runtime error
    ?:0: attempt to index a nil value
    stack traceback:
    	?: in function 'createHeaderBar'
    	?: in main chunk
2021-12-22 21:50:19.488 3142-3168/? W/System: A resource failed to call close. 
2021-12-22 21:50:19.489 3142-3168/? W/System: A resource failed to call close. 

Thanks a lot. I’ll examine this in more detail. Just to make sure - the app runs on other devices with android 12 - except the Google device?

I only have Google devices available for testing with Android 12 at the moment. It fails on all devices with Android 12.

I’ve ordered an Android 12 device and did some research. I found out that there is another cause of our runtime error. It has nothing to do with “Activity class CoronaActivity does not exist”. I’ve got no clue why is error appears in the log.

Our issue is based on missing fonts on Android 12.

Thanks for your support.

1 Like