GameActivity.java:277: error: cannot find symbol

This pastebin shows the logs from when I tried to build my game on the Android 15 API

Anyway to fix this?

TheEliteGameGuy,

Could you please provide me screenshots of how your Android settings are set up in the engine, please include your Android SDK settings as well.

Thank you!

Android SDK - http://prntscr.com/c1lv8x
Android - http://prntscr.com/c1lvhg
http://prntscr.com/c1lw4e
http://prntscr.com/c1lwa9

You’re going to need to uninstall AndroidWorks and install CodeWorks. You can find CodeWorks at the following locations in your engine folders:

Binary: EngineInstallLocation\UnrealEngineEngineVersion\Engine\Extras\Android

GitHub: EngineSyncLocation\UE4\Engine\Extras\Android

Once you’ve done that, update your Android SDK settings as follows:

101291-androidsdk.png

Which version of codeworks should I be using. 1R4u2?

Yes, CodeWorks for Android is the one that you should be on.

Still not working

Can you upload the new logs for me to review?

Thanks!

1 Like

Can you please set up your NVIDIA CodeWorks exactly like this:

Once you’ve set up your CodeWorks exactly like that, could you try to package again. If you update too far in advance, it might not work. Currently. Android 23 doesn’t work with UE4, but it will soon. Just not right now.

Thanks!

But I am trying to use API 15

Thank you for pointing that out. I have been able to completely reproduce this, no matter what I package for, for Android.

We are looking into this and will respond once we have additional information.

Appreciate the assistance! :slight_smile:

1 Like

The reason I originally was not seeing this, is because I was using, when I changed to Android-15 I began getting the same errors that you were.

This is because you need to set your Android SDK Level to no lower than. Anything else will NOT work and this is an expected result of the engine. Only the minimum SDK and target SDK versions in Android Settings may be set lower than, but you must always compile Java with 19 or higher as it’s required.

You should be able to package after that has been set properly.

So is there no way to develope for platforms below 5.0.1 ?

You can, but the Java still needs to have the dependencies from at least which is why you want to set NDK API Level to. If you go into Project Settings > Platforms - Android > Minimum SDK Version and Target SDK Version, you can change those to 15 if you’d like.

Try: