Announcement

Collapse
No announcement yet.

Missing Android source / files in Visual Studio

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Missing Android source / files in Visual Studio

    I'd like to experiment with Android functionality in my fork of the engine source code. However, when I'm looking at some of the Android cpp files (e.g., LaunchAndroid.cpp), I see many errors that are related to missing source files and undefined identifiers (Classes, Types, etc.) - see attachment.

    Click image for larger version

Name:	missing_source.png
Views:	1
Size:	72.2 KB
ID:	1171696

    What should I do to fix this?
    Last edited by bitwiseben; 02-07-2016, 11:05 AM. Reason: forgot attachment

    #2
    Hi bitwiseben,

    The files you are referring to are in the Android NDK. Please follow the instructions to install the AndroidWorks package:

    https://docs.unrealengine.com/latest...d/1/index.html

    Comment


      #3
      Chris, thanks for your reply!
      I have installed the Android NDK, and have successfully launced Android projects from Unreal to my device. However, when I'm looking at the Unreal Engine source code, Visual Studio (2015) does not seem to know where the NDK is. I do not know to fix this.

      Comment


        #4
        The Visual Studio project does not include the NDK paths for the IDE, but this isn't necessary to compile since we use our own build system which uses either the environment variables or the Android SDK settings in the editor.

        Comment


          #5
          Ah right, so that's why I can still compile the project even though I see errors/warnings... Thanks! (I'll try to add the NDK paths myself, as code completion would help me a lot with the NDK, which I know very little about :-))

          Comment

          Working...
          X