x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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 http://pastebin.com/eqCU3P0e Anyway to fix this?

Product Version: UE 4.12
Tags:
more ▼

asked Aug 04 '16 at 12:51 PM in Packaging & Deployment

avatar image

TheLazyHatGuy
28 4 8 10

avatar image Samantha Sutton ♦♦ STAFF Aug 04 '16 at 04:21 PM

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!

avatar image TheLazyHatGuy Aug 04 '16 at 04:27 PM
avatar image Samantha Sutton ♦♦ STAFF Aug 04 '16 at 09:56 PM

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:

Android SDK

androidsdk.png (94.2 kB)
avatar image TheLazyHatGuy Aug 04 '16 at 10:06 PM

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

avatar image Samantha Sutton ♦♦ STAFF Aug 13 '16 at 05:36 PM

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

avatar image TheLazyHatGuy Aug 13 '16 at 07:05 PM

Still not working

avatar image Samantha Sutton ♦♦ STAFF Aug 13 '16 at 07:42 PM

Can you upload the new logs for me to review?

Thanks!

avatar image TheLazyHatGuy Aug 13 '16 at 07:46 PM
avatar image Samantha Sutton ♦♦ STAFF Aug 13 '16 at 07:56 PM

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

CodeWorks

CodeWorks2

CodeWorks3

CodeWorks4

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!

codeworks.png (27.4 kB)
codeworks2.png (28.6 kB)
codeworks3.png (26.1 kB)
codeworks4.png (24.2 kB)
avatar image TheLazyHatGuy Aug 13 '16 at 08:25 PM

But I am trying to use API 15

avatar image Samantha Sutton ♦♦ STAFF Aug 13 '16 at 09:11 PM

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! :)

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

The reason I originally was not seeing this, is because I was using Android-19, 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 Android-19. 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 Android-19, 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.

more ▼

answered Aug 15 '16 at 03:25 PM

avatar image TheLazyHatGuy Aug 17 '16 at 08:08 AM

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

avatar image Samantha Sutton ♦♦ STAFF Aug 17 '16 at 06:25 PM

You can, but the Java still needs to have the dependencies from at least Android-19 which is why you want to set NDK API Level to Android-19. 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.

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question