Error in ndk-build

Create issue
Issue #158 closed
brbl created an issue

Following the instructions for Windows: after downloading the repo and extracting it, running ndk-build gives this error:

Android NDK: Your APP_BUILD_SCRIPT points to an unknown file: D:/Android/love2d-android/jni/Android.mk
D:/Android/android-ndk-r13b/build//../build/core/add-application.mk:198: *** Android NDK: Aborting...    .  Stop.

Okay, it seems that the repo doesnt support ndk-build now in favour of gradle, however, when i run gradlew build, gives this error:

Exception in thread "main" java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:219)
        at java.util.zip.ZipFile.<init>(ZipFile.java:149)
        at java.util.zip.ZipFile.<init>(ZipFile.java:163)
        at org.gradle.wrapper.Install.unzip(Install.java:214)
        at org.gradle.wrapper.Install.access$600(Install.java:27)
        at org.gradle.wrapper.Install$1.call(Install.java:74)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

Comments (4)

  1. Martin Felis repo owner

    Yes ndk-build should now be run by gradle.

    Can you try building it from Android Studio 3? Also keep issue #152 in mind.

  2. Log in to comment