NDK-Build fails on Android

About Monkey 2 Forums Monkey 2 Programming Help NDK-Build fails on Android

Tagged: ,

This topic contains 2 replies, has 2 voices, and was last updated by  taiko000 8 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12569

    taiko000
    Participant

    Did anyone manage to build Android apks with Monkey 2, 1.1.80?

    Building any example code in Ted2Go v2.7 with target Android always produces the following error:

    Android NDK: ERROR:jni/Android.mk:mx2_mojox: The LOCAL_SRC_FILES for a prebuilt library should only contain one item
    Build error: System command ‘ndk-build’ failed.

    Modules for Android have been rebuild inside Ted2Go.

    The NDK has been added to the PATH.

    I tried multiple NDK versions.

    #12582

    Mark Sibly
    Keymaster

    I assume you mean 1.1.08? I just quickly tested current develop branch and it’s working so perhaps give that a go?

    Note, sometimes it can be a good idea to delete .build* and .products directories – this performs a full ‘clean’ rebuild (and should really be a build option in the IDE!).

    My ndk version is 16.1.4479499 according to android studio.

    #12590

    taiko000
    Participant

    Everything works fine now after I compiled the develop branch from source. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.